aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/brcm80211/sys/wlc_alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/brcm80211/sys/wlc_alloc.c')
-rw-r--r--drivers/staging/brcm80211/sys/wlc_alloc.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/staging/brcm80211/sys/wlc_alloc.c b/drivers/staging/brcm80211/sys/wlc_alloc.c
index e863a81e045..659ebd0ee2d 100644
--- a/drivers/staging/brcm80211/sys/wlc_alloc.c
+++ b/drivers/staging/brcm80211/sys/wlc_alloc.c
@@ -196,7 +196,6 @@ wlc_info_t *wlc_attach_malloc(struct osl_info *osh, uint unit, uint *err,
196 } 196 }
197 wlc->hw->wlc = wlc; 197 wlc->hw->wlc = wlc;
198 198
199#ifdef WLC_LOW
200 wlc->hw->bandstate[0] = (wlc_hwband_t *)wlc_calloc(osh, unit, 199 wlc->hw->bandstate[0] = (wlc_hwband_t *)wlc_calloc(osh, unit,
201 (sizeof(wlc_hwband_t) * MAXBANDS)); 200 (sizeof(wlc_hwband_t) * MAXBANDS));
202 if (wlc->hw->bandstate[0] == NULL) { 201 if (wlc->hw->bandstate[0] == NULL) {
@@ -211,7 +210,6 @@ wlc_info_t *wlc_attach_malloc(struct osl_info *osh, uint unit, uint *err,
211 (sizeof(wlc_hwband_t) * i)); 210 (sizeof(wlc_hwband_t) * i));
212 } 211 }
213 } 212 }
214#endif /* WLC_LOW */
215 213
216 wlc->modulecb = (modulecb_t *)wlc_calloc(osh, unit, 214 wlc->modulecb = (modulecb_t *)wlc_calloc(osh, unit,
217 sizeof(modulecb_t) * WLC_MAXMODULES); 215 sizeof(modulecb_t) * WLC_MAXMODULES);
@@ -357,12 +355,10 @@ void wlc_detach_mfree(wlc_info_t *wlc, struct osl_info *osh)
357 } 355 }
358 356
359 if (wlc->hw) { 357 if (wlc->hw) {
360#ifdef WLC_LOW
361 if (wlc->hw->bandstate[0]) { 358 if (wlc->hw->bandstate[0]) {
362 kfree(wlc->hw->bandstate[0]); 359 kfree(wlc->hw->bandstate[0]);
363 wlc->hw->bandstate[0] = NULL; 360 wlc->hw->bandstate[0] = NULL;
364 } 361 }
365#endif
366 362
367 /* free hw struct */ 363 /* free hw struct */
368 kfree(wlc->hw); 364 kfree(wlc->hw);