diff mbox

[OPW,kernel,v2] staging: rtl8192u: make in ieee80211/ieee80211_wx.c a local variable static

Message ID c3561e87c672b8cece4a28750b51dbfa49b07644.1395138046.git.anarey@gmail.com
State New, archived
Headers show

Commit Message

Ana Rey March 18, 2014, 11 a.m. UTC
Make some local variable eee80211_modes static.

Fix sparse warnings:
drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c:42:19: warning: symbol 'ieee80211_modes' was not declared. Should it be static?

Signed-off-by: Ana Rey <anarey@gmail.com>
---
[Changes in V2:]
I sync up with Greg's tree as Peter P Waskiewicz Jr suggested me.
Also, I fix descriptions and subject in this patch.

 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c
index e1fe54a..bdf67ec 100644
--- a/drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c
+++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c
@@ -39,7 +39,7 @@  struct modes_unit {
 	char *mode_string;
 	int mode_size;
 };
-struct modes_unit ieee80211_modes[] = {
+static struct modes_unit ieee80211_modes[] = {
 	{"a",1},
 	{"b",1},
 	{"g",1},