aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-05-09 18:54:55 (GMT)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-05-16 15:20:22 (GMT)
commit7e6b6b945272c20f6b78d319e07f27897a8373c9 (patch)
tree62429c634923b9c7944ec4a7def38847babea347
parentc578c7710712194acac4197aef289a4b0b83d9b5 (diff)
media: dw9807: remove an unused varold/cs_7e6b6b945272
drivers/media/i2c/dw9807.c: In function 'dw9807_set_dac': drivers/media/i2c/dw9807.c:81:16: warning: unused variable 'retry' [-Wunused-variable] int val, ret, retry = 0; ^ Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
-rw-r--r--drivers/media/i2c/dw9807.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/dw9807.c b/drivers/media/i2c/dw9807.c
index 28ede2b..6ebb987 100644
--- a/drivers/media/i2c/dw9807.c
+++ b/drivers/media/i2c/dw9807.c
@@ -78,7 +78,7 @@ static int dw9807_set_dac(struct i2c_client *client, u16 data)
const char tx_data[3] = {
DW9807_MSB_ADDR, ((data >> 8) & 0x03), (data & 0xff)
};
- int val, ret, retry = 0;
+ int val, ret;
/*
* According to the datasheet, need to check the bus status before we

Privacy Policy