]> 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)
commit07164a7098e3740467d21f9df03278ec8ea0f029
treec897cb4774863da1c29088c2e19aa11b7ce37126
parentcb66898e3ce1f31ce43060ba3d3a0e70f40cca50
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