staging: rtl8188eu: initial value placed in the variable

Line become shorter.
After the loop offset variable points to the location following insertion.

Signed-off-by: Ivan Safonov <insafonov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Ivan Safonov 2015-11-03 16:46:08 +07:00 committed by Greg Kroah-Hartman
parent d44f58f7c5
commit 1c48deffc7
1 changed files with 2 additions and 3 deletions

View File

@ -65,11 +65,10 @@ static void _rtl88e_fw_block_write(struct adapter *adapt,
blk_cnt = size / blk_sz;
remain = size % blk_sz;
offset = 0;
offset = FW_8192C_START_ADDRESS;
for (i = 0; i < blk_cnt; i++) {
usb_write32(adapt, (FW_8192C_START_ADDRESS + offset),
pu4BytePtr[i]);
usb_write32(adapt, offset, pu4BytePtr[i]);
offset += blk_sz;
}