Skip to content

Commit

Permalink
V4L/DVB (4366): Remove of couple of useless lines
Browse files Browse the repository at this point in the history
A buffer was set just before an if block, and then again in both branches
of the if.  Obvious coding error.

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Trent Piepho authored and Mauro Carvalho Chehab committed Sep 26, 2006
1 parent e84fef6 commit 22694c0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/media/video/tuner-simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -439,8 +439,6 @@ static void default_set_radio_freq(struct i2c_client *c, unsigned int freq)
buffer[3] = 0xa4;
break;
}
buffer[0] = (div>>8) & 0x7f;
buffer[1] = div & 0xff;
if (params->cb_first_if_lower_freq && div < t->last_div) {
buffer[0] = buffer[2];
buffer[1] = buffer[3];
Expand Down

0 comments on commit 22694c0

Please sign in to comment.