Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 268214
b: refs/heads/master
c: d2bac23
h: refs/heads/master
v: v3
  • Loading branch information
Roland Vossen authored and Greg Kroah-Hartman committed Sep 6, 2011
1 parent c277201 commit 8a92594
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 24 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 95ccc2f72c3a74cef5b0eebdbbf813cdcc10086a
refs/heads/master: d2bac23d7640d7fa709954befbbe2e5ea13c63f8
39 changes: 16 additions & 23 deletions trunk/drivers/staging/brcm80211/brcmsmac/alloc.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
#/*
* Copyright (c) 2010 Broadcom Corporation
*
* Permission to use, copy, modify, and/or distribute this software for any
Expand All @@ -20,13 +20,6 @@
#include "main.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)
{
tunables->ntxd = NTXD;
Expand All @@ -45,6 +38,16 @@ static void brcms_c_tunables_init(struct brcms_tunables *tunables, uint devid)
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)
{
struct brcms_pub *pub;
Expand Down Expand Up @@ -77,14 +80,14 @@ static struct brcms_pub *brcms_c_pub_malloc(uint unit, uint *err, uint devid)
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;

kfree(pub->multicast);
kfree(pub->tunables);
kfree(pub);
kfree(cfg->maclist);
kfree(cfg->current_bss);
kfree(cfg);
}

static struct brcms_bss_cfg *brcms_c_bsscfg_malloc(uint unit)
Expand All @@ -106,16 +109,6 @@ static struct brcms_bss_cfg *brcms_c_bsscfg_malloc(uint unit)
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,
struct brcms_bss_cfg *bsscfg)
{
Expand Down

0 comments on commit 8a92594

Please sign in to comment.