mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-06 00:47:56 -04:00
staging: rtl8188eu: assigning a value to the variable is replaced by the increment
It is made to the initial value could be placed in the offset variable. Signed-off-by: Ivan Safonov <insafonov@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
52863d83f3
commit
d44f58f7c5
@@ -65,10 +65,12 @@ static void _rtl88e_fw_block_write(struct adapter *adapt,
|
||||
blk_cnt = size / blk_sz;
|
||||
remain = size % blk_sz;
|
||||
|
||||
offset = 0;
|
||||
|
||||
for (i = 0; i < blk_cnt; i++) {
|
||||
offset = i * blk_sz;
|
||||
usb_write32(adapt, (FW_8192C_START_ADDRESS + offset),
|
||||
pu4BytePtr[i]);
|
||||
offset += blk_sz;
|
||||
}
|
||||
|
||||
if (remain) {
|
||||
|
||||
Reference in New Issue
Block a user