summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8188eu/hal
diff options
context:
space:
mode:
authorIvan Safonov <insafonov@gmail.com>2015-11-03 16:46:08 +0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-11-15 20:02:47 -0800
commit1c48deffc7fa48a341ccc4bcef41f8ce2eab645f (patch)
tree8fa0c1a3c902fbb8824dd8efedc0674980bff78d /drivers/staging/rtl8188eu/hal
parentd44f58f7c5c737c6f95f3adf4af00a4a19746d9f (diff)
downloadop-kernel-dev-1c48deffc7fa48a341ccc4bcef41f8ce2eab645f.zip
op-kernel-dev-1c48deffc7fa48a341ccc4bcef41f8ce2eab645f.tar.gz
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>
Diffstat (limited to 'drivers/staging/rtl8188eu/hal')
-rw-r--r--drivers/staging/rtl8188eu/hal/fw.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/rtl8188eu/hal/fw.c b/drivers/staging/rtl8188eu/hal/fw.c
index 70825e0..99dd1f0 100644
--- a/drivers/staging/rtl8188eu/hal/fw.c
+++ b/drivers/staging/rtl8188eu/hal/fw.c
@@ -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;
}
OpenPOWER on IntegriCloud