Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1533607
| From | Rasmus Villemoes <linux@rasmusvillemoes.dk> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 2/4] [media] lmedm04: change some static variables to automatic |
| Date | 2016-11-30 22:50 +0100 |
| Message-ID | <sJkVk-31F-31@gated-at.bofh.it> (permalink) |
| References | <sJkLD-2XW-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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>
---
drivers/media/usb/dvb-usb-v2/lmedm04.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/usb/dvb-usb-v2/lmedm04.c b/drivers/media/usb/dvb-usb-v2/lmedm04.c
index 7692701878ba..cd463f09ebc7 100644
--- a/drivers/media/usb/dvb-usb-v2/lmedm04.c
+++ b/drivers/media/usb/dvb-usb-v2/lmedm04.c
@@ -315,7 +315,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;
--
2.1.4
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 1/4] [media] lmedm04: use %phN for hex dump Rasmus Villemoes <linux@rasmusvillemoes.dk> - 2016-11-30 22:40 +0100 [PATCH 3/4] [media] lmedm04: make some string arrays static Rasmus Villemoes <linux@rasmusvillemoes.dk> - 2016-11-30 22:50 +0100 [PATCH 4/4] [media] lmedm04: make lme2510_powerup a little smaller Rasmus Villemoes <linux@rasmusvillemoes.dk> - 2016-11-30 22:50 +0100 [PATCH 2/4] [media] lmedm04: change some static variables to automatic Rasmus Villemoes <linux@rasmusvillemoes.dk> - 2016-11-30 22:50 +0100
csiph-web