]> Gentwo Git Trees - linux/.git/commit
staging: rtl8723bs: Cleanups for rtw_inc_and_chk_continual_io_error
authorChenguang Zhao <zhaochenguang@kylinos.cn>
Thu, 5 Dec 2024 02:16:10 +0000 (10:16 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Dec 2024 15:54:03 +0000 (16:54 +0100)
commita99e5c8853f4b018b003641ad532059169e271a5
tree7380e8b3bc4a3ae9d5aed846abbae6266b370f1c
parentf9e7f3f9620b13d76ed16399b46b29cab1a398f2
staging: rtl8723bs: Cleanups for rtw_inc_and_chk_continual_io_error

There's a warning when using checkpatch.pl check rtw_io.c:

    WARNING: Missing a blank line after declarations
    146: FILE: drivers/staging/rtl8723bs/core/rtw_io.c:146:
    int value = atomic_inc_return(&dvobj->continual_io_error);
    if (value > MAX_CONTINUAL_IO_ERR)

The patch fixes it.

In addition, also rename 'value' variable to 'error_count' and drop
'ret' variable.

Signed-off-by: Chenguang Zhao <zhaochenguang@kylinos.cn>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/20241205021610.523528-1-zhaochenguang@kylinos.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_io.c