]> Gentwo Git Trees - linux/.git/commit
staging: rtl8723bs: remove return from void function
authorMichael Straube <straube.linux@gmail.com>
Sun, 15 Jun 2025 12:37:58 +0000 (14:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2025 15:32:40 +0000 (17:32 +0200)
commit9279204d37cce549f40cdc677b86405e8628212c
treedcc045ba997e3c62f299beb4e787973d9f1b5460
parent1b30f644f7e2b8d4352b7a796496c41f81aa72ed
staging: rtl8723bs: remove return from void function

Remove exit label and return statement from a void function.
After the exit label no cleanup is done, so it is safe to remove it
and return early in the only place where the label is used.
This simplifies the code and clears a checkpatch warning.

WARNING: void function return statements are not generally useful

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Reviewed-by: Hans de Goede <hansg@kernel.org>
Link: https://lore.kernel.org/r/20250615123758.41869-1-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/os_dep/os_intfs.c