public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] [media] anysee: Initialize ret = 0 in anysee_frontend_attach()
@ 2013-04-24 11:36 Geert Uytterhoeven
  2013-04-24 11:36 ` [PATCH 2/2] [media] anysee: Grammar s/report the/report to/ Geert Uytterhoeven
  2013-04-25 15:57 ` [PATCH 1/2] [media] anysee: Initialize ret = 0 in anysee_frontend_attach() Antti Palosaari
  0 siblings, 2 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2013-04-24 11:36 UTC (permalink / raw)
  To: Antti Palosaari, Mauro Carvalho Chehab
  Cc: linux-media, linux-kernel, Geert Uytterhoeven

drivers/media/usb/dvb-usb-v2/anysee.c: In function ‘anysee_frontend_attach’:
drivers/media/usb/dvb-usb-v2/anysee.c:641: warning: ‘ret’ may be used uninitialized in this function

And gcc is right (see the ANYSEE_HW_507T case), so initialize ret to zero
to fix this.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 drivers/media/usb/dvb-usb-v2/anysee.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/media/usb/dvb-usb-v2/anysee.c b/drivers/media/usb/dvb-usb-v2/anysee.c
index a20d691..3a1f976 100644
--- a/drivers/media/usb/dvb-usb-v2/anysee.c
+++ b/drivers/media/usb/dvb-usb-v2/anysee.c
@@ -638,7 +638,7 @@ static int anysee_frontend_attach(struct dvb_usb_adapter *adap)
 {
 	struct anysee_state *state = adap_to_priv(adap);
 	struct dvb_usb_device *d = adap_to_d(adap);
-	int ret;
+	int ret = 0;
 	u8 tmp;
 	struct i2c_msg msg[2] = {
 		{
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-04-25 15:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-24 11:36 [PATCH 1/2] [media] anysee: Initialize ret = 0 in anysee_frontend_attach() Geert Uytterhoeven
2013-04-24 11:36 ` [PATCH 2/2] [media] anysee: Grammar s/report the/report to/ Geert Uytterhoeven
2013-04-25 15:58   ` Antti Palosaari
2013-04-25 15:57 ` [PATCH 1/2] [media] anysee: Initialize ret = 0 in anysee_frontend_attach() Antti Palosaari

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox