Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5f782dee authored by Jason Cooper's avatar Jason Cooper Committed by Greg Kroah-Hartman
Browse files

staging: brcm80211: fix 'do not init statics to 0 or NULL'

parent 6998d337
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 };
+1 −1
Original line number Diff line number Diff line
@@ -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");
+1 −1
Original line number Diff line number Diff line
@@ -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;
+3 −3
Original line number Diff line number Diff line
@@ -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 */
+2 −2
Original line number Diff line number Diff line
@@ -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 {
Loading