summaryrefslogtreecommitdiff
path: root/drivers/media/pci/pt3
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-10-31 06:19:42 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-12-08 10:11:22 -0500
commit60a881862c69d211701d9bba81203a2f44d38367 (patch)
tree34cec26131814ed60e49c29a5d9d7a699d966d83 /drivers/media/pci/pt3
parente40d14a89760632238f67c1f96c852652a137f2d (diff)
media: pt3: remove redundant assignment to mask
Variable mask is being set to 0x80 and then set to this value again in the following for-loop. Remove the extraneous first setting of mask. Cleans up clang warning: drivers/media/pci/pt3/pt3_i2c.c:88:2: warning: Value stored to 'mask' 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>
Diffstat (limited to 'drivers/media/pci/pt3')
-rw-r--r--drivers/media/pci/pt3/pt3_i2c.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/media/pci/pt3/pt3_i2c.c b/drivers/media/pci/pt3/pt3_i2c.c
index ec6a8a2e4744..b66138c7b364 100644
--- a/drivers/media/pci/pt3/pt3_i2c.c
+++ b/drivers/media/pci/pt3/pt3_i2c.c
@@ -85,7 +85,6 @@ static void put_byte_write(struct pt3_i2cbuf *cbuf, u8 val)
{
u8 mask;
- mask = 0x80;
for (mask = 0x80; mask > 0; mask >>= 1)
cmdbuf_add(cbuf, (val & mask) ? I_DATA_H_NOP : I_DATA_L_NOP);
cmdbuf_add(cbuf, I_DATA_H_ACK0);