Skip to content

Commit

Permalink
[media] af9015: remove needless variable set
Browse files Browse the repository at this point in the history
Variable is don't care in that case. No need to set value.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
palosaari authored and Mauro Carvalho Chehab committed Oct 21, 2010
1 parent 9a3ecc7 commit 675375d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/dvb/dvb-usb/af9015.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ static int af9015_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[],
struct dvb_usb_device *d = i2c_get_adapdata(adap);
int ret = 0, i = 0;
u16 addr;
u8 mbox, addr_len;
u8 uninitialized_var(mbox), addr_len;
struct req_t req;

/* TODO: implement bus lock
Expand Down Expand Up @@ -282,7 +282,7 @@ Due to that the only way to select correct tuner is use demodulator I2C-gate.
} else {
addr = msg[i].buf[0];
addr_len = 1;
mbox = 0;
/* mbox is don't care in that case */
}

if (num > i + 1 && (msg[i+1].flags & I2C_M_RD)) {
Expand Down

0 comments on commit 675375d

Please sign in to comment.