mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 00:43:08 -04:00
staging: rtl8188eu: buf_ptr variable completely defined in a single line
It is simpler. 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
ec60e037c7
commit
1e7e93ee6d
@@ -71,7 +71,7 @@ static void _rtl88e_fw_block_write(struct adapter *adapt,
|
||||
usb_write32(adapt, offset, pu4BytePtr[i]);
|
||||
}
|
||||
|
||||
buf_ptr += blk_cnt * blk_sz;
|
||||
buf_ptr = buffer + blk_cnt * blk_sz;
|
||||
for (i = 0; i < remain; i++, offset++) {
|
||||
usb_write8(adapt, offset, buf_ptr[i]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user