]> git.baikalelectronics.ru Git - kernel.git/commit
staging: r8188eu: reduce variables in block_write()
authorMichael Straube <straube.linux@gmail.com>
Tue, 12 Apr 2022 18:57:52 +0000 (20:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Apr 2022 06:55:54 +0000 (08:55 +0200)
commitda8bcc9582c4f7cba805ff5ea6a7c4baef0683e2
treec897cb4774863da1c29088c2e19aa11b7ce37126
parent253f3e5860aa4030517dbc46429ac7f03ffcce52
staging: r8188eu: reduce variables in block_write()

For cleaner code and improved readability we can reduce the number
of local variables in block_write(). Use a single variable for block
size, number of blocks and remaining size.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20220412185754.8695-5-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_fw.c