staging: rtl8188eu: buf_ptr variable completely defined in a single line
authorIvan Safonov <insafonov@gmail.com>
Tue, 3 Nov 2015 09:51:11 +0000 (16:51 +0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Nov 2015 04:02:47 +0000 (20:02 -0800)
It is simpler.

Signed-off-by: Ivan Safonov <insafonov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/fw.c

index 3cfd2b2bc868128fdf9417ea2814c1b87e190695..4f1c3a2997b8c3d74e88d3b386a28675176dd26f 100644 (file)
@@ -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]);
        }