OSDN Git Service

staging: rtl8188eu: remove return variable from rtw_pwr_unassociated_idle
authorMichael Straube <straube.linux@gmail.com>
Sat, 23 Nov 2019 15:16:35 +0000 (16:16 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Dec 2019 09:38:38 +0000 (10:38 +0100)
commita426b982be18eac979a26deca9ae8cb7f0082101
tree2fd899948c30722665daf2fa2d9df8702d02b7e0
parent4905084a07fc133605088fc1d65401c6ba4a5a76
staging: rtl8188eu: remove return variable from rtw_pwr_unassociated_idle

Function rtw_pwr_unassociated_idle returns boolean values.
Remove the return variable ret and the exit label to simplify the
function a little bit. Return true or false directly instead.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Link: https://lore.kernel.org/r/20191123151635.155138-3-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_pwrctrl.c