OSDN Git Service

[media] lmedm04: change some static variables to automatic
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Wed, 30 Nov 2016 21:39:10 +0000 (19:39 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 3 Feb 2017 09:39:36 +0000 (07:39 -0200)
ibuf and rbuf in lme2510_int_response are always assigned to before they
are read, and their addresses do not escape the function, so they have
no reason to be static.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/usb/dvb-usb-v2/lmedm04.c

index 360cb62..5a32767 100644 (file)
@@ -309,7 +309,7 @@ static void lme2510_int_response(struct urb *lme_urb)
 {
        struct dvb_usb_adapter *adap = lme_urb->context;
        struct lme2510_state *st = adap_to_priv(adap);
-       static u8 *ibuf, *rbuf;
+       u8 *ibuf, *rbuf;
        int i = 0, offset;
        u32 key;
        u8 signal_lock = 0;