summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwl8k.c
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2013-01-09 11:01:37 -0500
committerJohn W. Linville <linville@tuxdriver.com>2013-01-09 11:01:37 -0500
commita9b8a894ad7d0b90b0464c9ac7e8e5c1687edcae (patch)
treefacc20b09719093ea35cd05374f31b34df95ae15 /drivers/net/wireless/mwl8k.c
parentc9be4a5c49cf51cc70a993f004c5bb30067a65ce (diff)
parent5e20a4b53094651d80f856ff55a916b999dbb57a (diff)
downloadlinux-a9b8a894ad7d0b90b0464c9ac7e8e5c1687edcae.tar.gz
linux-a9b8a894ad7d0b90b0464c9ac7e8e5c1687edcae.tar.bz2
linux-a9b8a894ad7d0b90b0464c9ac7e8e5c1687edcae.zip
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless into for-davem
Diffstat (limited to 'drivers/net/wireless/mwl8k.c')
-rw-r--r--drivers/net/wireless/mwl8k.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwl8k.c b/drivers/net/wireless/mwl8k.c
index f221b95b90b3..83564d36e801 100644
--- a/drivers/net/wireless/mwl8k.c
+++ b/drivers/net/wireless/mwl8k.c
@@ -4250,9 +4250,11 @@ static int mwl8k_cmd_update_stadb_add(struct ieee80211_hw *hw,
p->amsdu_enabled = 0;
rc = mwl8k_post_cmd(hw, &cmd->header);
+ if (!rc)
+ rc = p->station_id;
kfree(cmd);
- return rc ? rc : p->station_id;
+ return rc;
}
static int mwl8k_cmd_update_stadb_del(struct ieee80211_hw *hw,