aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/r8188eu/core/rtw_fw.c
diff options
context:
space:
mode:
authorMichael Straube <straube.linux@gmail.com>2022-04-12 20:57:53 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-04-13 08:55:54 +0200
commit067b22afad2f26a80b66dd21b72bc6978fe61a9b (patch)
treec93cfb99e3b39f7fe38fe0cea0ad8d887e1c6902 /drivers/staging/r8188eu/core/rtw_fw.c
parentstaging: r8188eu: reduce variables in block_write() (diff)
downloadlinux-dev-067b22afad2f26a80b66dd21b72bc6978fe61a9b.tar.xz
linux-dev-067b22afad2f26a80b66dd21b72bc6978fe61a9b.zip
staging: r8188eu: remove unneeded initializations
The variables i and offset in block_write() are set in the code before they are used. Remove the unneeded initializations. Signed-off-by: Michael Straube <straube.linux@gmail.com> Link: https://lore.kernel.org/r/20220412185754.8695-6-straube.linux@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to '')
-rw-r--r--drivers/staging/r8188eu/core/rtw_fw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/r8188eu/core/rtw_fw.c b/drivers/staging/r8188eu/core/rtw_fw.c
index b4ab050a6f23..1e930799a0b3 100644
--- a/drivers/staging/r8188eu/core/rtw_fw.c
+++ b/drivers/staging/r8188eu/core/rtw_fw.c
@@ -75,7 +75,7 @@ static int block_write(struct adapter *padapter, u8 *buffer, u32 size)
{
int ret = _SUCCESS;
u32 blocks, block_size, remain;
- u32 i = 0, offset = 0;
+ u32 i, offset;
block_size = MAX_REG_BLOCK_SIZE;