Skip to contentSkip to conversation

media: dw9807: Fix a warning: unused variable 'retry'

PATCH New Andy Yeh 1 participant 1 message May 16, 2018

Subsystems (2)
lore
Share & tools
lore

Andy Yeh

author
#0 lore raw

PATCH 1/1 media: dw9807: Fix a warning: unused variable 'retry'

Fix a warning reported by compiler, along with an incremental patch.

---
 drivers/media/i2c/dw9807.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/i2c/dw9807.c +1 -1
index 28ede2b..6ebb987 100644
@@ -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
Signature · 1 line
2.7.4