]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: brcm80211: fix 'do not init statics to 0 or NULL'
authorJason Cooper <jason@lakedaemon.net>
Wed, 6 Oct 2010 14:08:01 +0000 (10:08 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 6 Oct 2010 15:20:42 +0000 (08:20 -0700)
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c
drivers/staging/brcm80211/brcmfmac/bcmsdh_sdmmc_linux.c
drivers/staging/brcm80211/brcmfmac/dhd_common.c
drivers/staging/brcm80211/brcmfmac/dhd_linux.c
drivers/staging/brcm80211/brcmfmac/linux_osl.c
drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c
drivers/staging/brcm80211/brcmfmac/wl_iw.c

index f81823ebeb10f8c87db63cb285bacb58b33c24a2..0301c1f7e3f3ab290ad8ef7a8e50f60b1c364854 100644 (file)
@@ -70,7 +70,7 @@ struct bcmsdh_hc {
        spinlock_t irq_lock;
 #endif
 };
-static bcmsdh_hc_t *sdhcinfo = NULL;
+static bcmsdh_hc_t *sdhcinfo;
 
 /* driver info, initialized when bcmsdh_register is called */
 static bcmsdh_driver_t drvinfo = { NULL, NULL };
index 2b71e206760feb5061cba6a22530aba23b5b5658..e5968012bac70c983a8970ee578f2e3c10026657 100644 (file)
@@ -60,7 +60,7 @@ int sdio_function_init(void);
 void sdio_function_cleanup(void);
 
 /* module param defaults */
-static int clockoverride = 0;
+static int clockoverride;
 
 module_param(clockoverride, int, 0644);
 MODULE_PARM_DESC(clockoverride, "SDIO card clock override");
index 849acf1e252c0993dc24853547f38e0516026756..27c69762c056841f840b278ef093927abe71b4e9 100644 (file)
@@ -750,7 +750,7 @@ static void wl_show_host_event(wl_event_msg_t *event, void *event_data)
 
        case WLC_E_TRACE:
                {
-                       static uint32 seqnum_prev = 0;
+                       static uint32 seqnum_prev;
                        msgtrace_hdr_t hdr;
                        uint32 nblost;
                        char *s, *p;
index f7e253ea12a29884257bb74608003d7942eebe03..42e2f2981bb442af9603d33cdf224e084714bec8 100644 (file)
@@ -58,8 +58,8 @@ struct semaphore wifi_control_sem;
 
 struct dhd_bus *g_bus;
 
-static struct wifi_platform_data *wifi_control_data = NULL;
-static struct resource *wifi_irqres = NULL;
+static struct wifi_platform_data *wifi_control_data;
+static struct resource *wifi_irqres;
 
 int wifi_get_irq_number(unsigned long *irq_flags_ptr)
 {
@@ -2542,7 +2542,7 @@ int dhd_os_ioctl_resp_wake(dhd_pub_t *pub)
 void dhd_os_wd_timer(void *bus, uint wdtick)
 {
        dhd_pub_t *pub = bus;
-       static uint save_dhd_watchdog_ms = 0;
+       static uint save_dhd_watchdog_ms;
        dhd_info_t *dhd = (dhd_info_t *) pub->info;
 
        /* don't start the wd until fw is loaded */
index f71a65b79ad9b981f9ba6339b0f4d66ca936a385..c30422cb23311efa3f4a7ed769ee29f8fdd62099 100644 (file)
@@ -42,7 +42,7 @@ typedef struct bcm_static_buf {
        unsigned char buf_use[MAX_STATIC_BUF_NUM];
 } bcm_static_buf_t;
 
-static bcm_static_buf_t *bcm_static_buf = 0;
+static bcm_static_buf_t *bcm_static_buf;
 
 #define MAX_STATIC_PKT_NUM 8
 typedef struct bcm_static_pkt {
@@ -51,7 +51,7 @@ typedef struct bcm_static_pkt {
        struct semaphore osl_pkt_sem;
        unsigned char pkt_use[MAX_STATIC_PKT_NUM * 2];
 } bcm_static_pkt_t;
-static bcm_static_pkt_t *bcm_static_skb = 0;
+static bcm_static_pkt_t *bcm_static_skb;
 #endif                         /* DHD_USE_STATIC_BUF */
 
 typedef struct bcm_mem_link {
index 341e108bffdb1006e1c6f98003bcd9114fd778c4..38672930ca102e187901e4cee1a277e405a1e55a 100644 (file)
@@ -47,8 +47,8 @@
 #include <linux/firmware.h>
 #include <wl_cfg80211.h>
 
-static struct sdio_func *cfg80211_sdio_func = NULL;
-static struct wl_dev *wl_cfg80211_dev = NULL;
+static struct sdio_func *cfg80211_sdio_func;
+static struct wl_dev *wl_cfg80211_dev;
 
 uint32 wl_dbg_level = WL_DBG_ERR | WL_DBG_INFO;
 
index 944b7a017e651d4089a9f16c7afb463a0b9773af..b2514d1763537ef720104562f719aa21a01b93e0 100644 (file)
@@ -101,7 +101,7 @@ extern int dhd_wait_pend8021x(struct net_device *dev);
 #define IW_EVENT_IDX(cmd)      ((cmd) - IWEVFIRST)
 #endif
 
-static void *g_scan = NULL;
+static void *g_scan;
 static volatile uint g_scan_specified_ssid;
 static wlc_ssid_t g_specific_ssid;