]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
staging: brcm80211: fix "ERROR: do not initialise statics to 0 or NULL"
authorJason Cooper <jason@lakedaemon.net>
Tue, 14 Sep 2010 13:45:38 +0000 (09:45 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 14 Sep 2010 23:23:40 +0000 (16:23 -0700)
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/brcm80211/sys/wl_mac80211.c
drivers/staging/brcm80211/util/bcmutils.c
drivers/staging/brcm80211/util/hnddma.c
drivers/staging/brcm80211/util/hndpmu.c
drivers/staging/brcm80211/util/nvram/nvram_ro.c
drivers/staging/brcm80211/util/siutils.c

index b92942f1d6716c7142abb21a47750104c812931d..b6b4c6ad9e50c4bc7e6794e7140be7b371943027 100644 (file)
@@ -128,7 +128,7 @@ static int wl_linux_watchdog(void *ctx);
        FIF_OTHER_BSS | \
        FIF_BCN_PRBRESP_PROMISC)
 
-static int wl_found = 0;
+static int wl_found;
 
 struct ieee80211_tkip_data {
 #define TKIP_KEY_LEN 32
@@ -203,17 +203,17 @@ module_param(phymsglevel, int, 0);
 #endif                         /* WLC_HIGH_ONLY */
 #endif                         /* BCMDBG */
 
-static int oneonly = 0;
+static int oneonly;
 module_param(oneonly, int, 0);
 
-static int piomode = 0;
+static int piomode;
 module_param(piomode, int, 0);
 
-static int instance_base = 0;  /* Starting instance number */
+static int instance_base;      /* Starting instance number */
 module_param(instance_base, int, 0);
 
 #if defined(BCMDBG)
-static char *macaddr = NULL;
+static char *macaddr;
 module_param(macaddr, charp, S_IRUGO);
 #endif
 
index 056fcaf52bffad60fb5206bf535ab9b90411793e..cff4d030c803db1fcd4cd17ffb03c8ae674166cd 100644 (file)
@@ -29,7 +29,7 @@
 
 #ifdef WLC_LOW
 /* nvram vars cache */
-static char *nvram_vars = NULL;
+static char *nvram_vars;
 static int vars_len = -1;
 #endif                         /* WLC_LOW */
 
index 837c97ffafbca25eab54e604faf565f6773e52ba..7c2ed272d0a71e090c76d0440f63517b64f053b0 100644 (file)
@@ -48,7 +48,7 @@
 #define rxd64          dregs.d64_u.rxd_64
 
 /* default dma message level (if input msg_level pointer is null in dma_attach()) */
-static uint dma_msg_level = 0;
+static uint dma_msg_level;
 
 #define        MAXNAMEL        8       /* 8 char names */
 
index 2d244f8847028b3e90ca266c97c4970f9481fafe..fab07fe93067a19838e412656c3ee2a0198cb8c3 100644 (file)
@@ -1840,7 +1840,7 @@ uint32 BCMINITFN(si_pmu_mem_clock) (si_t *sih, osl_t *osh)
 /* Measure ILP clock frequency */
 #define ILP_CALC_DUR   10      /* ms, make sure 1000 can be divided by it. */
 
-static uint32 ilpcycles_per_sec = 0;
+static uint32 ilpcycles_per_sec;
 
 uint32 BCMINITFN(si_pmu_ilp_clock) (si_t *sih, osl_t *osh)
 {
index 86832e1a591236f6949fb8d2ebb887003f6f3234..f6640ef8fb97c92bb61d4b0cee02345590e8ca6f 100644 (file)
@@ -38,7 +38,7 @@ typedef struct _vars {
 
 #define        VARS_T_OH       sizeof(vars_t)
 
-static vars_t *vars = NULL;
+static vars_t *vars;
 
 #define NVRAM_FILE     1
 
index b60bc3bda5a4e6fbabbb86905463a32ac82901e0..08393ee1efafcfdc88e554ca22503ae27672c4e3 100644 (file)
@@ -69,7 +69,7 @@ static uint BCMINITFN(socram_banksize) (si_info_t *sii, sbsocramregs_t *r,
                                        uint8 idx, uint8 mtype);
 
 /* global variable to indicate reservation/release of gpio's */
-static uint32 si_gpioreservation = 0;
+static uint32 si_gpioreservation;
 
 /* global flag to prevent shared resources from being initialized multiple times in si_attach() */