diff options
author | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-02-22 12:54:28 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-02-22 12:54:28 -0500 |
commit | 4395fb475a27ddcb33c27380e132ef5354ff67c6 (patch) | |
tree | 49ec8409d031ec616d84ef3bd1cd95f85b4ae92c /drivers/media/i2c/tda1997x.c | |
parent | 9ac0038db9a7e10fc8f425010ec98b7afc2ff621 (diff) | |
download | linux-4395fb475a27ddcb33c27380e132ef5354ff67c6.tar.gz linux-4395fb475a27ddcb33c27380e132ef5354ff67c6.tar.bz2 linux-4395fb475a27ddcb33c27380e132ef5354ff67c6.zip |
tda1997x: get rid of an unused var
1 warning regressions:
+ drivers/media/i2c/tda1997x.c: warning: variable 'last_irq_status' set but not used [-Wunused-but-set-variable]: => 1421:17
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/i2c/tda1997x.c')
-rw-r--r-- | drivers/media/i2c/tda1997x.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/i2c/tda1997x.c b/drivers/media/i2c/tda1997x.c index a480aafecbf6..3021913c28fa 100644 --- a/drivers/media/i2c/tda1997x.c +++ b/drivers/media/i2c/tda1997x.c @@ -1418,13 +1418,13 @@ static void tda1997x_irq_rate(struct tda1997x_state *state, u8 *flags) struct v4l2_subdev *sd = &state->sd; u8 reg, source; - u8 irq_status, last_irq_status; + u8 irq_status; source = io_read(sd, REG_INT_FLG_CLR_RATE); io_write(sd, REG_INT_FLG_CLR_RATE, source); /* read status regs */ - last_irq_status = irq_status = tda1997x_read_activity_status_regs(sd); + irq_status = tda1997x_read_activity_status_regs(sd); /* * read clock status reg until INT_FLG_CLR_RATE is still 0 |