* [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
* [PATCH 2/2] [media] anysee: Grammar s/report the/report to/
2013-04-24 11:36 [PATCH 1/2] [media] anysee: Initialize ret = 0 in anysee_frontend_attach() Geert Uytterhoeven
@ 2013-04-24 11:36 ` 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
1 sibling, 1 reply; 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
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 3a1f976..1760fee 100644
--- a/drivers/media/usb/dvb-usb-v2/anysee.c
+++ b/drivers/media/usb/dvb-usb-v2/anysee.c
@@ -885,7 +885,7 @@ static int anysee_frontend_attach(struct dvb_usb_adapter *adap)
/* we have no frontend :-( */
ret = -ENODEV;
dev_err(&d->udev->dev, "%s: Unsupported Anysee version. " \
- "Please report the " \
+ "Please report to " \
"<linux-media@vger.kernel.org>.\n",
KBUILD_MODNAME);
}
--
1.7.0.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] [media] anysee: Initialize ret = 0 in anysee_frontend_attach()
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:57 ` Antti Palosaari
1 sibling, 0 replies; 4+ messages in thread
From: Antti Palosaari @ 2013-04-25 15:57 UTC (permalink / raw)
To: Geert Uytterhoeven; +Cc: Mauro Carvalho Chehab, linux-media, linux-kernel
On 04/24/2013 02:36 PM, Geert Uytterhoeven wrote:
> 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>
Acked-by: Antti Palosaari <crope@iki.fi>
Reviewed-by: Antti Palosaari <crope@iki.fi>
> ---
> 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] = {
> {
>
--
http://palosaari.fi/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 2/2] [media] anysee: Grammar s/report the/report to/
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
0 siblings, 0 replies; 4+ messages in thread
From: Antti Palosaari @ 2013-04-25 15:58 UTC (permalink / raw)
To: Geert Uytterhoeven; +Cc: Mauro Carvalho Chehab, linux-media, linux-kernel
On 04/24/2013 02:36 PM, Geert Uytterhoeven wrote:
> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Antti Palosaari <crope@iki.fi>
Reviewed-by: Antti Palosaari <crope@iki.fi>
> ---
> 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 3a1f976..1760fee 100644
> --- a/drivers/media/usb/dvb-usb-v2/anysee.c
> +++ b/drivers/media/usb/dvb-usb-v2/anysee.c
> @@ -885,7 +885,7 @@ static int anysee_frontend_attach(struct dvb_usb_adapter *adap)
> /* we have no frontend :-( */
> ret = -ENODEV;
> dev_err(&d->udev->dev, "%s: Unsupported Anysee version. " \
> - "Please report the " \
> + "Please report to " \
> "<linux-media@vger.kernel.org>.\n",
> KBUILD_MODNAME);
> }
>
--
http://palosaari.fi/
^ permalink raw reply [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;
as well as URLs for NNTP newsgroup(s).