diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2010-12-31 10:26:53 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-01-04 13:47:45 -0500 |
commit | 0c8fc77e481a3bfc243336085a3fe1fc71f9c1fb (patch) | |
tree | 78aff5a9aea804fab37fec93e9cc0b495ad3d0e4 /drivers/media/common | |
parent | 4f77b86c665ff6a167edfdf152ebfa997783fa17 (diff) |
[media] tda18218: fix compile warning
drivers/media/common/tuners/tda18218.c: In function 'tda18218_wr_regs':
drivers/media/common/tuners/tda18218.c:58:5: warning: 'ret' may be used uninitialized in this function
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/common')
-rw-r--r-- | drivers/media/common/tuners/tda18218.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/common/tuners/tda18218.c b/drivers/media/common/tuners/tda18218.c index 8da1fdeddaa7..aacfe2387e28 100644 --- a/drivers/media/common/tuners/tda18218.c +++ b/drivers/media/common/tuners/tda18218.c | |||
@@ -28,7 +28,7 @@ MODULE_PARM_DESC(debug, "Turn on/off debugging (default:off)."); | |||
28 | /* write multiple registers */ | 28 | /* write multiple registers */ |
29 | static int tda18218_wr_regs(struct tda18218_priv *priv, u8 reg, u8 *val, u8 len) | 29 | static int tda18218_wr_regs(struct tda18218_priv *priv, u8 reg, u8 *val, u8 len) |
30 | { | 30 | { |
31 | int ret; | 31 | int ret = 0; |
32 | u8 buf[1+len], quotient, remainder, i, msg_len, msg_len_max; | 32 | u8 buf[1+len], quotient, remainder, i, msg_len, msg_len_max; |
33 | struct i2c_msg msg[1] = { | 33 | struct i2c_msg msg[1] = { |
34 | { | 34 | { |