]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
[media] anysee: fix a warning
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 27 Oct 2012 19:28:00 +0000 (16:28 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 28 Oct 2012 09:38:55 +0000 (07:38 -0200)
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>
drivers/media/usb/dvb-usb-v2/anysee.c

index e78ca8fc7f854bc2c0dcc9e23606139ec049911b..d05c5b563dac69485af3ea1ca4b219c39c08e990 100644 (file)
@@ -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)