Also a 'remain' variable removed from the loop.

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

diff --git a/drivers/staging/rtl8188eu/hal/fw.c 
b/drivers/staging/rtl8188eu/hal/fw.c
index c880ba1..f153387 100644
--- a/drivers/staging/rtl8188eu/hal/fw.c
+++ b/drivers/staging/rtl8188eu/hal/fw.c
@@ -89,7 +89,7 @@ static void _rtl88e_fill_dummy(u8 *pfwbuf, u32 *pfwlen)
        remain = (remain == 0) ? 0 : (4 - remain);
        n = remain;
 
-       for (remain = 0; *pfwlen + remain < *pfwlen + n; fwlen++, remain++) {
+       for (; fwlen < *pfwlen + n; fwlen++) {
                pfwbuf[fwlen] = 0;
        }
 
-- 
2.4.10

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

Reply via email to