diff options
author | mike.rapoport@gmail.com <mike.rapoport@gmail.com> | 2010-10-13 00:09:09 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-14 12:28:18 -0700 |
commit | 97e17d0e7bb861c197e50433325bf2f5f9871f90 (patch) | |
tree | 92846f9a34e565c759b29c1dca958ca965c98dba /drivers/staging/brcm80211/sys | |
parent | 6a92fdf1b923fa5b6d6dd08a7bba80fb3d9e5eaf (diff) | |
download | op-kernel-dev-97e17d0e7bb861c197e50433325bf2f5f9871f90.zip op-kernel-dev-97e17d0e7bb861c197e50433325bf2f5f9871f90.tar.gz |
staging: brcm80211: remove osl_malloced()/MALLOCED()
because there are other means to track memory leaks in kernel
Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/brcm80211/sys')
-rw-r--r-- | drivers/staging/brcm80211/sys/wl_mac80211.c | 9 | ||||
-rw-r--r-- | drivers/staging/brcm80211/sys/wlc_alloc.c | 3 | ||||
-rw-r--r-- | drivers/staging/brcm80211/sys/wlc_ampdu.c | 2 | ||||
-rw-r--r-- | drivers/staging/brcm80211/sys/wlc_antsel.c | 2 | ||||
-rw-r--r-- | drivers/staging/brcm80211/sys/wlc_channel.c | 3 | ||||
-rw-r--r-- | drivers/staging/brcm80211/sys/wlc_phy_shim.c | 2 |
6 files changed, 7 insertions, 14 deletions
diff --git a/drivers/staging/brcm80211/sys/wl_mac80211.c b/drivers/staging/brcm80211/sys/wl_mac80211.c index c004a0b..babb678 100644 --- a/drivers/staging/brcm80211/sys/wl_mac80211.c +++ b/drivers/staging/brcm80211/sys/wl_mac80211.c @@ -1615,11 +1615,6 @@ void wl_free(wl_info_t *wl) } #endif /* WLC_HIGH_ONLY */ - if (osl_malloced(osh)) { - printf("**** Memory leak of bytes %d\n", osl_malloced(osh)); - ASSERT(0 && "Memory Leak"); - } - osl_detach(osh); } @@ -1664,7 +1659,7 @@ wl_schedule_task(wl_info_t *wl, void (*fn) (struct wl_task *task), task = osl_malloc(wl->osh, sizeof(wl_task_t)); if (!task) { - WL_ERROR(("wl%d: wl_schedule_task: out of memory, malloced %d bytes\n", wl->pub->unit, osl_malloced(wl->osh))); + WL_ERROR(("wl%d: wl_schedule_task: out of memory\n", wl->pub->unit)); return -ENOMEM; } @@ -1918,7 +1913,7 @@ wl_timer_t *wl_init_timer(wl_info_t *wl, void (*fn) (void *arg), void *arg, t = osl_malloc(wl->osh, sizeof(wl_timer_t)); if (!t) { - WL_ERROR(("wl%d: wl_init_timer: out of memory, malloced %d bytes\n", wl->pub->unit, osl_malloced(wl->osh))); + WL_ERROR(("wl%d: wl_init_timer: out of memory\n", wl->pub->unit)); return 0; } diff --git a/drivers/staging/brcm80211/sys/wlc_alloc.c b/drivers/staging/brcm80211/sys/wlc_alloc.c index 9c902d7..e637e62 100644 --- a/drivers/staging/brcm80211/sys/wlc_alloc.c +++ b/drivers/staging/brcm80211/sys/wlc_alloc.c @@ -39,8 +39,7 @@ void *wlc_calloc(osl_t *osh, uint unit, uint size) item = MALLOC(osh, size); if (item == NULL) - WL_ERROR(("wl%d: %s: out of memory, malloced %d bytes\n", - unit, __func__, MALLOCED(osh))); + WL_ERROR(("wl%d: %s: out of memory\n", unit, __func__)); else bzero((char *)item, size); return item; diff --git a/drivers/staging/brcm80211/sys/wlc_ampdu.c b/drivers/staging/brcm80211/sys/wlc_ampdu.c index 6eed9ee..99a1357 100644 --- a/drivers/staging/brcm80211/sys/wlc_ampdu.c +++ b/drivers/staging/brcm80211/sys/wlc_ampdu.c @@ -181,7 +181,7 @@ ampdu_info_t *wlc_ampdu_attach(wlc_info_t *wlc) ampdu = (ampdu_info_t *) MALLOC(wlc->osh, sizeof(ampdu_info_t)); if (!ampdu) { - WL_ERROR(("wl%d: wlc_ampdu_attach: out of mem, malloced %d bytes\n", wlc->pub->unit, MALLOCED(wlc->osh))); + WL_ERROR(("wl%d: wlc_ampdu_attach: out of mem\n", wlc->pub->unit)); return NULL; } bzero((char *)ampdu, sizeof(ampdu_info_t)); diff --git a/drivers/staging/brcm80211/sys/wlc_antsel.c b/drivers/staging/brcm80211/sys/wlc_antsel.c index cecec82..b2e132d 100644 --- a/drivers/staging/brcm80211/sys/wlc_antsel.c +++ b/drivers/staging/brcm80211/sys/wlc_antsel.c @@ -96,7 +96,7 @@ antsel_info_t *wlc_antsel_attach(wlc_info_t *wlc, osl_t *osh, asi = (antsel_info_t *) MALLOC(osh, sizeof(antsel_info_t)); if (!asi) { - WL_ERROR(("wl%d: wlc_antsel_attach: out of mem, malloced %d bytes\n", pub->unit, MALLOCED(osh))); + WL_ERROR(("wl%d: wlc_antsel_attach: out of mem\n", pub->unit)); return NULL; } diff --git a/drivers/staging/brcm80211/sys/wlc_channel.c b/drivers/staging/brcm80211/sys/wlc_channel.c index 324de3d..6adb65a 100644 --- a/drivers/staging/brcm80211/sys/wlc_channel.c +++ b/drivers/staging/brcm80211/sys/wlc_channel.c @@ -614,8 +614,7 @@ wlc_cm_info_t *wlc_channel_mgr_attach(wlc_info_t *wlc) wlc_cm = (wlc_cm_info_t *) MALLOC(pub->osh, sizeof(wlc_cm_info_t)); if (wlc_cm == NULL) { - WL_ERROR(("wl%d: %s: out of memory, malloced %d bytes", - pub->unit, __func__, MALLOCED(pub->osh))); + WL_ERROR(("wl%d: %s: out of memory", pub->unit, __func__)); return NULL; } bzero((char *)wlc_cm, sizeof(wlc_cm_info_t)); diff --git a/drivers/staging/brcm80211/sys/wlc_phy_shim.c b/drivers/staging/brcm80211/sys/wlc_phy_shim.c index 7c8193a..37bb593 100644 --- a/drivers/staging/brcm80211/sys/wlc_phy_shim.c +++ b/drivers/staging/brcm80211/sys/wlc_phy_shim.c @@ -69,7 +69,7 @@ wlc_phy_shim_info_t *wlc_phy_shim_attach(wlc_hw_info_t *wlc_hw, physhim = (wlc_phy_shim_info_t *)MALLOC(wlc_hw->osh, sizeof(wlc_phy_shim_info_t)); if (!physhim) { - WL_ERROR(("wl%d: wlc_phy_shim_attach: out of mem, malloced %d bytes\n", wlc_hw->unit, MALLOCED(wlc_hw->osh))); + WL_ERROR(("wl%d: wlc_phy_shim_attach: out of mem\n", wlc_hw->unit)); return NULL; } bzero((char *)physhim, sizeof(wlc_phy_shim_info_t)); |