]> git.baikalelectronics.ru Git - kernel.git/commit
staging: r8188eu: refactor rtw_inc_and_chk_continual_urb_error()
authorMichael Straube <straube.linux@gmail.com>
Tue, 29 Mar 2022 10:37:54 +0000 (12:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Apr 2022 05:33:47 +0000 (07:33 +0200)
commite324c46da36650d14be5973964e43350b747cdb9
tree1cdb2c9987e8d58d4333254149e8b7e0a4f6ec49
parent0c066eefb60115f4b3ead2e176ce2f78309095d7
staging: r8188eu: refactor rtw_inc_and_chk_continual_urb_error()

Refactor rtw_inc_and_chk_continual_urb_error(). Return directly
instead of using a return variable and initialize the variable 'value'
at declaration. This shortens the code and improves readability.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20220329103756.6740-3-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/include/usb_ops.h