]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rtl8723bs: Remove unneeded goto statements
authorLarry Finger <Larry.Finger@lwfinger.net>
Mon, 10 Feb 2020 18:02:35 +0000 (12:02 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Feb 2020 18:32:38 +0000 (10:32 -0800)
commit7ed16ac723b010007da8b6ac111deafb3148e37c
treea4c5dd77d79dc4275fe5b90e181f75828cab5b22
parent20ea9729a29edfdf966fa620ef766b2222be85c9
staging: rtl8723bs: Remove unneeded goto statements

In routines rtw_hostapd_ioctl() and wpa_supplicant_ioctl(), several
error conditions involve setting a variable indicating the error,
followed by a goto. The code following the target of that goto merely
returns the value. It is simpler, therefore to return the error value
immediately, and eliminate the got  target.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Pietro Oliva <pietroliva@gmail.com>
Link: https://lore.kernel.org/r/20200210180235.21691-7-Larry.Finger@lwfinger.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/os_dep/ioctl_linux.c