Commit d2bac23d authored by Roland Vossen's avatar Roland Vossen Committed by Greg Kroah-Hartman

staging: brcm80211: removed static function declarations in alloc.c

Reported-by: default avatarJohannes Berg <johannes@sipsolutions.net>
Signed-off-by: default avatarRoland Vossen <rvossen@broadcom.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 95ccc2f7
/* #/*
* Copyright (c) 2010 Broadcom Corporation * Copyright (c) 2010 Broadcom Corporation
* *
* Permission to use, copy, modify, and/or distribute this software for any * Permission to use, copy, modify, and/or distribute this software for any
...@@ -20,13 +20,6 @@ ...@@ -20,13 +20,6 @@
#include "main.h" #include "main.h"
#include "alloc.h" #include "alloc.h"
static struct brcms_bss_cfg *brcms_c_bsscfg_malloc(uint unit);
static void brcms_c_bsscfg_mfree(struct brcms_bss_cfg *cfg);
static struct brcms_pub *brcms_c_pub_malloc(uint unit,
uint *err, uint devid);
static void brcms_c_pub_mfree(struct brcms_pub *pub);
static void brcms_c_tunables_init(struct brcms_tunables *tunables, uint devid);
static void brcms_c_tunables_init(struct brcms_tunables *tunables, uint devid) static void brcms_c_tunables_init(struct brcms_tunables *tunables, uint devid)
{ {
tunables->ntxd = NTXD; tunables->ntxd = NTXD;
...@@ -45,6 +38,16 @@ static void brcms_c_tunables_init(struct brcms_tunables *tunables, uint devid) ...@@ -45,6 +38,16 @@ static void brcms_c_tunables_init(struct brcms_tunables *tunables, uint devid)
tunables->txsbnd = TXSBND; tunables->txsbnd = TXSBND;
} }
static void brcms_c_pub_mfree(struct brcms_pub *pub)
{
if (pub == NULL)
return;
kfree(pub->multicast);
kfree(pub->tunables);
kfree(pub);
}
static struct brcms_pub *brcms_c_pub_malloc(uint unit, uint *err, uint devid) static struct brcms_pub *brcms_c_pub_malloc(uint unit, uint *err, uint devid)
{ {
struct brcms_pub *pub; struct brcms_pub *pub;
...@@ -77,14 +80,14 @@ static struct brcms_pub *brcms_c_pub_malloc(uint unit, uint *err, uint devid) ...@@ -77,14 +80,14 @@ static struct brcms_pub *brcms_c_pub_malloc(uint unit, uint *err, uint devid)
return NULL; return NULL;
} }
static void brcms_c_pub_mfree(struct brcms_pub *pub) static void brcms_c_bsscfg_mfree(struct brcms_bss_cfg *cfg)
{ {
if (pub == NULL) if (cfg == NULL)
return; return;
kfree(pub->multicast); kfree(cfg->maclist);
kfree(pub->tunables); kfree(cfg->current_bss);
kfree(pub); kfree(cfg);
} }
static struct brcms_bss_cfg *brcms_c_bsscfg_malloc(uint unit) static struct brcms_bss_cfg *brcms_c_bsscfg_malloc(uint unit)
...@@ -106,16 +109,6 @@ static struct brcms_bss_cfg *brcms_c_bsscfg_malloc(uint unit) ...@@ -106,16 +109,6 @@ static struct brcms_bss_cfg *brcms_c_bsscfg_malloc(uint unit)
return NULL; return NULL;
} }
static void brcms_c_bsscfg_mfree(struct brcms_bss_cfg *cfg)
{
if (cfg == NULL)
return;
kfree(cfg->maclist);
kfree(cfg->current_bss);
kfree(cfg);
}
static void brcms_c_bsscfg_ID_assign(struct brcms_c_info *wlc, static void brcms_c_bsscfg_ID_assign(struct brcms_c_info *wlc,
struct brcms_bss_cfg *bsscfg) struct brcms_bss_cfg *bsscfg)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment