diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-06-17 20:28:51 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-07-27 17:53:02 -0300 |
commit | 00d2e7ad9dd4e88224d091e454371d8a9a80719f (patch) | |
tree | a74121f3553bec2b1c88d8143a045e2b4a026265 /drivers/media/video/em28xx/em28xx-i2c.c | |
parent | 67a8dbbc4e04cd256987b189352472a59aff73be (diff) | |
download | op-kernel-dev-00d2e7ad9dd4e88224d091e454371d8a9a80719f.zip op-kernel-dev-00d2e7ad9dd4e88224d091e454371d8a9a80719f.tar.gz |
[media] em28xx: Don't initialize a var if won't be using it
Fixes most cases of initializing a var but not using it.
There are still 3 cases at em28xx-alsa, were those vars should
probably be used.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/em28xx/em28xx-i2c.c')
-rw-r--r-- | drivers/media/video/em28xx/em28xx-i2c.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/media/video/em28xx/em28xx-i2c.c b/drivers/media/video/em28xx/em28xx-i2c.c index 4739fc7..4ece685 100644 --- a/drivers/media/video/em28xx/em28xx-i2c.c +++ b/drivers/media/video/em28xx/em28xx-i2c.c @@ -218,9 +218,7 @@ static int em28xx_i2c_recv_bytes(struct em28xx *dev, unsigned char addr, */ static int em28xx_i2c_check_for_device(struct em28xx *dev, unsigned char addr) { - char msg; int ret; - msg = addr; ret = dev->em28xx_read_reg_req(dev, 2, addr); if (ret < 0) { |