mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-13 03:42:36 +01:00
netdev: remove unneeded goto/return code
All possible paths led to the same result so it was simplified to remove two goto's and a return call.
This commit is contained in:
parent
a04d4423f8
commit
19ce2d86dd
@ -2234,12 +2234,7 @@ static void netdev_authenticate_event(struct l_genl_msg *msg,
|
||||
return;
|
||||
else if (ret > 0)
|
||||
status_code = (uint16_t)ret;
|
||||
|
||||
goto auth_error;
|
||||
} else
|
||||
goto auth_error;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
auth_error:
|
||||
netdev_connect_failed(netdev, NETDEV_RESULT_AUTHENTICATION_FAILED,
|
||||
|
Loading…
Reference in New Issue
Block a user