diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-06-18 01:28:51 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-07-27 22:53:02 +0200 |
commit | 00d2e7ad9dd4e88224d091e454371d8a9a80719f (patch) | |
tree | a74121f3553bec2b1c88d8143a045e2b4a026265 /drivers/media/video/em28xx/em28xx-i2c.c | |
parent | [media] marvell-cam: Basic working MMP camera driver (diff) | |
download | linux-00d2e7ad9dd4e88224d091e454371d8a9a80719f.tar.xz linux-00d2e7ad9dd4e88224d091e454371d8a9a80719f.zip |
[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 4739fc7e6eb3..4ece6856fba0 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) { |