diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-12-02 18:47:01 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-12-02 18:47:01 +0100 |
commit | 833edd5e26e3f0c8b453f4ee65512b200f5b8e43 (patch) | |
tree | 5dfa3a4cbc125380c3fa66fa5118c76f78fde55b /linux/drivers/media/video/ivtv | |
parent | d20ee3454faafdf532c7569784918103cce05f44 (diff) | |
download | mediapointer-dvb-s2-833edd5e26e3f0c8b453f4ee65512b200f5b8e43.tar.gz mediapointer-dvb-s2-833edd5e26e3f0c8b453f4ee65512b200f5b8e43.tar.bz2 |
ivtv: Remove a invalid shadow-variable
From: Richard Knutsson <ricknu-0@student.ltu.se>
Remove the shadowing 'struct v4l2_chip_ident *chip', since it already exists
and makes the if-statement useless.
Signed-off-by: Richard Knutsson <ricknu-0@student.ltu.se>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/ivtv')
-rw-r--r-- | linux/drivers/media/video/ivtv/ivtv-ioctl.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/linux/drivers/media/video/ivtv/ivtv-ioctl.c b/linux/drivers/media/video/ivtv/ivtv-ioctl.c index 30cc3b290..39f20dfb8 100644 --- a/linux/drivers/media/video/ivtv/ivtv-ioctl.c +++ b/linux/drivers/media/video/ivtv/ivtv-ioctl.c @@ -679,11 +679,8 @@ static int ivtv_debug_ioctls(struct file *filp, unsigned int cmd, void *arg) chip->ident = V4L2_IDENT_NONE; chip->revision = 0; if (reg->match_type == V4L2_CHIP_MATCH_HOST) { - if (v4l2_chip_match_host(reg->match_type, reg->match_chip)) { - struct v4l2_chip_ident *chip = arg; - + if (v4l2_chip_match_host(reg->match_type, reg->match_chip)) chip->ident = itv->has_cx23415 ? V4L2_IDENT_CX23415 : V4L2_IDENT_CX23416; - } return 0; } if (reg->match_type == V4L2_CHIP_MATCH_I2C_DRIVER) |