linux/drivers/staging
Phillip Potter 2b5002e2cc staging: r8188eu: convert rtw_pwr_wakeup to correct error code semantics
Convert the rtw_pwr_wakeup function to use 0 on success and an appropriate
error code on error. For the first failure block where ips_leave is
invoked, use -ENOMEM as this is the main cause of failure here anyway.
For the second failure block, use -EBUSY, as it seems the most
appropriate.

Finally, within the functions rtw_wx_set_mode, rtw_wx_set_wap,
rtw_wx_set_scan and rtw_wx_set_essid, pass the error code on from
rtw_pwr_wakeup as appropriate now that it is converted.

This gets the driver closer to removal of the non-standard _SUCCESS and
_FAIL definitions, which are inverted compared to the standard in-kernel
error code mechanism.

Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
Link: https://lore.kernel.org/r/20220725220745.12739-1-phil@philpotter.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-07-27 08:45:32 +02:00
..
axis-fifo staging: axis-fifo: Use platform_get_irq() to get the interrupt 2021-12-30 11:54:56 +01:00
board
clocking-wizard
emxx_udc
fbtft staging: ftbft: Use backlight helper 2022-06-10 09:01:03 +02:00
fieldbus staging: fieldbus: Fix the error handling path in anybuss_host_common_probe() 2022-04-22 16:48:31 +02:00
fwserial
gdm724x Staging driver update for 5.18-rc1 2022-03-28 12:50:50 -07:00
greybus staging: greybus: audio: replace safe list iteration 2022-06-10 14:47:42 +02:00
iio staging: iio: ad2s1210: remove redundant assignment to variable negative 2022-04-28 19:22:56 +01:00
ks7010 staging: ks7010: remove null check after call container_of() 2022-05-19 17:42:41 +02:00
media media: hantro: Enable HOLD_CAPTURE_BUF for H.264 2022-05-17 10:11:19 +02:00
most staging/most, dim2: convert dim2_tasklet to threaded irq 2022-04-12 15:53:50 +02:00
nvec Staging: nvec: Fix ending in '(' error 2022-02-08 10:46:01 +01:00
octeon staging: switch to netif_napi_add_weight() 2022-07-08 14:28:21 +02:00
olpc_dcon Merge 5.19-rc3 into staging-next 2022-06-20 08:59:23 +02:00
pi433 staging: pi433: remove duplicated comments 2022-07-27 08:42:14 +02:00
qlge staging: qlge: refine variable name 2022-07-27 08:41:23 +02:00
r8188eu staging: r8188eu: convert rtw_pwr_wakeup to correct error code semantics 2022-07-27 08:45:32 +02:00
rtl8192e Staging: rtl8192e: Added spaces around '+' 2022-07-08 14:25:46 +02:00
rtl8192u staging: rtl8192u: Fix sleep in atomic context bug in dm_fsync_timer_callback 2022-07-11 10:05:35 +02:00
rtl8712 staging: rtl8712: fix uninit-value in r871xu_drv_init() 2022-05-19 17:44:25 +02:00
rtl8723bs staging: rtl8723bs: remove trailing whitespace 2022-06-20 10:02:52 +02:00
rts5208 staging: rts5208: spi.c: fix codestyle error in dynamic debug code 2022-06-06 07:53:49 +02:00
sm750fb staging: sm750fb: fix CamelCase function parameter 2022-06-20 10:01:21 +02:00
vc04_services staging: vchiq_arm: Add missing memory barrier comments 2022-06-27 13:50:19 +02:00
vme_user vme: move back to staging 2022-06-10 15:38:14 +02:00
vt6655 staging: vt6655: Convert macro vt6655_mac_word_reg_bits_off to function 2022-07-14 15:48:38 +02:00
vt6656 staging: vt6656: Fix multiple blank lines warning 2022-04-04 07:33:45 +02:00
wlan-ng staging/wlan-ng: get the correct struct hfa384x in work callback 2022-07-01 09:58:58 +02:00
Kconfig staging: octeon-usb: move driver out of staging 2022-06-21 16:43:37 +02:00
Makefile staging: octeon-usb: move driver out of staging 2022-06-21 16:43:37 +02:00