This variable used as a loop counter.

Signed-off-by: Ivan Safonov <insafo...@gmail.com>
---
 drivers/staging/rtl8188eu/hal/fw.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/rtl8188eu/hal/fw.c 
b/drivers/staging/rtl8188eu/hal/fw.c
index 3cd684a..981641b 100644
--- a/drivers/staging/rtl8188eu/hal/fw.c
+++ b/drivers/staging/rtl8188eu/hal/fw.c
@@ -83,13 +83,13 @@ static void _rtl88e_fw_block_write(struct adapter *adapt,
 
 static void _rtl88e_fill_dummy(u8 *pfwbuf, u32 *pfwlen)
 {
-       u32 fwlen;
+       u32 i;
 
-       for (fwlen = *pfwlen; fwlen < roundup(*pfwlen, 4); fwlen++) {
-               pfwbuf[fwlen] = 0;
+       for (i = *pfwlen; i < roundup(*pfwlen, 4); i++) {
+               pfwbuf[i] = 0;
        }
 
-       *pfwlen = fwlen;
+       *pfwlen = i;
 }
 
 static void _rtl88e_fw_page_write(struct adapter *adapt,
-- 
2.4.10

_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to