[PATCH 08/11] staging: rtl8188eu: initialization of the loop counter moved to the header of the loop
Ivan Safonov
insafonov at gmail.com
Wed Nov 4 03:16:38 UTC 2015
It is the canonical form of the for loop.
Signed-off-by: Ivan Safonov <insafonov at gmail.com>
---
drivers/staging/rtl8188eu/hal/fw.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/rtl8188eu/hal/fw.c b/drivers/staging/rtl8188eu/hal/fw.c
index d0fa803..3cd684a 100644
--- a/drivers/staging/rtl8188eu/hal/fw.c
+++ b/drivers/staging/rtl8188eu/hal/fw.c
@@ -83,9 +83,9 @@ static void _rtl88e_fw_block_write(struct adapter *adapt,
static void _rtl88e_fill_dummy(u8 *pfwbuf, u32 *pfwlen)
{
- u32 fwlen = *pfwlen;
+ u32 fwlen;
- for (; fwlen < roundup(*pfwlen, 4); fwlen++) {
+ for (fwlen = *pfwlen; fwlen < roundup(*pfwlen, 4); fwlen++) {
pfwbuf[fwlen] = 0;
}
--
2.4.10
More information about the devel
mailing list