linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] media: dw9807: Fix a warning: unused variable 'retry'
@ 2018-05-16 15:27 Andy Yeh
  0 siblings, 0 replies; only message in thread
From: Andy Yeh @ 2018-05-16 15:27 UTC (permalink / raw)
  To: linux-media; +Cc: sakari.ailus, andy.yeh, tfiga, alanx.chiang

Fix a warning reported by compiler, along with an incremental patch.
---
 drivers/media/i2c/dw9807.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
-- 
2.7.4

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-05-16 15:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-16 15:27 [PATCH] media: dw9807: Fix a warning: unused variable 'retry' Andy Yeh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).