Skip to content

Commit

Permalink
[media] anysee: fix a warning
Browse files Browse the repository at this point in the history
drivers/media/usb/dvb-usb-v2/anysee.c:1179:5: warning: 'tmp' may be used uninitialized in this function [-Wmaybe-uninitialized]

Cc: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Mauro Carvalho Chehab committed Oct 28, 2012
1 parent 59e5405 commit 03ad9fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/usb/dvb-usb-v2/anysee.c
Original file line number Diff line number Diff line change
Expand Up @@ -1170,7 +1170,7 @@ static int anysee_ci_poll_slot_status(struct dvb_ca_en50221 *ci, int slot,
struct dvb_usb_device *d = ci->data;
struct anysee_state *state = d_to_priv(d);
int ret;
u8 tmp;
u8 tmp = 0;

ret = anysee_rd_reg_mask(d, REG_IOC, &tmp, 0x40);
if (ret)
Expand Down

0 comments on commit 03ad9fe

Please sign in to comment.