From: Mauro Carvalho Chehab Date: Sat, 27 Oct 2012 19:28:00 +0000 (-0300) Subject: [media] anysee: fix a warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=03ad9fe4ce2881995b63e58a5518f6b8ff044e94;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [media] anysee: fix a warning drivers/media/usb/dvb-usb-v2/anysee.c:1179:5: warning: 'tmp' may be used uninitialized in this function [-Wmaybe-uninitialized] Cc: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/usb/dvb-usb-v2/anysee.c b/drivers/media/usb/dvb-usb-v2/anysee.c index e78ca8fc7f85..d05c5b563dac 100644 --- a/drivers/media/usb/dvb-usb-v2/anysee.c +++ b/drivers/media/usb/dvb-usb-v2/anysee.c @@ -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)