[PATCH] libertas: fix one more sparse warnin

Holger Schurig hs4233 at mail.mn-solutions.de
Wed Jun 13 05:25:59 EDT 2007


From 2c44dd5bbfd4cdc3be0bc8a8687ea6e994b14672 Mon Sep 17 00:00:00 2001
From: Holger Schurig <hs4233 at mail.mn-solutions.de>
Date: Wed, 13 Jun 2007 10:39:44 +0200
Subject: [PATCH] libertas: fix one more sparse warning

adhoc_rates_b is only used locally, so make it static

Signed-off-by: Holger Schurig <hs4233 at mail.mn-solutions.de>
---
 drivers/net/wireless/libertas/join.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/wireless/libertas/join.c b/drivers/net/wireless/libertas/join.c
index 0651ea0..e651d7a 100644
--- a/drivers/net/wireless/libertas/join.c
+++ b/drivers/net/wireless/libertas/join.c
@@ -18,7 +18,7 @@
 #include "assoc.h"
 
 /* Supported rates for ad-hoc B mode */
-u8 adhoc_rates_b[5] = { 0x02, 0x04, 0x0b, 0x16, 0x00 };
+static u8 adhoc_rates_b[5] = { 0x02, 0x04, 0x0b, 0x16, 0x00 };
 
 
 /**
-- 
1.5.2.1




More information about the libertas-dev mailing list