Skip to content

Commit

Permalink
[media] mxl111sf: fix build warning
Browse files Browse the repository at this point in the history
fix build warning:
	variable ‘ret’ set but not used in function ‘mxl111sf_i2c_readagain’

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Nov 7, 2011
1 parent cd834fa commit e836a1c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/media/dvb/dvb-usb/mxl111sf-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,6 @@ static int mxl111sf_i2c_readagain(struct mxl111sf_state *state,
u8 i2c_r_data[24];
u8 i = 0;
u8 fifo_status = 0;
int ret;
int status = 0;

mxl_i2c("read %d bytes", count);
Expand All @@ -418,7 +417,7 @@ static int mxl111sf_i2c_readagain(struct mxl111sf_state *state,
i2c_w_data[4+(i*3)] = 0x00;
}

ret = mxl111sf_i2c_get_data(state, 0, i2c_w_data, i2c_r_data);
mxl111sf_i2c_get_data(state, 0, i2c_w_data, i2c_r_data);

/* Check for I2C NACK status */
if (mxl111sf_i2c_check_status(state) == 1) {
Expand Down

0 comments on commit e836a1c

Please sign in to comment.