]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
media: mxl111sf: remove redundant assignment to index
authorColin Ian King <colin.king@canonical.com>
Sun, 29 Oct 2017 12:50:58 +0000 (08:50 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 31 Oct 2017 11:27:14 +0000 (07:27 -0400)
Variable index is set to zero and then set to zero again
a few lines later in a for loop initialization. Remove the
redundant setting of index to zero. Cleans up the clang
warning:

drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c:519:3: warning: Value
stored to 'index' is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c

index 0eb33e043079c8024c37173c3152d65d23a62bf5..a221bb8a12b48263a55a55fbb8f3538881333e93 100644 (file)
@@ -516,7 +516,6 @@ static int mxl111sf_i2c_hw_xfer_msg(struct mxl111sf_state *state,
                   data required to program */
                block_len = (msg->len / 8);
                left_over_len = (msg->len % 8);
-               index = 0;
 
                mxl_i2c("block_len %d, left_over_len %d",
                        block_len, left_over_len);