Skip to content

Commit

Permalink
V4L/DVB (6731): ivtv: Remove a invalid shadow-variable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Richard Knutsson authored and Mauro Carvalho Chehab committed Jan 25, 2008
1 parent 5d2bf93 commit e1ba33d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/media/video/ivtv/ivtv-ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -673,11 +673,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)
Expand Down

0 comments on commit e1ba33d

Please sign in to comment.