aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwl8k.c
diff options
context:
space:
mode:
authorLennert Buytenhek <buytenh@wantstofly.org>2009-11-30 12:31:40 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-12-28 16:31:24 -0500
commit99200a992e365a73dc67a6570524e5f3af4386dd (patch)
treeb6f1bafed40cc6ae6d545cd47d70276330b0cf00 /drivers/net/wireless/mwl8k.c
parent55489b6ed6801a42636fc3d4594b77dda9c409f2 (diff)
mwl8k: hw is never NULL in mwl8k_set_radio_preamble()
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwl8k.c')
-rw-r--r--drivers/net/wireless/mwl8k.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/net/wireless/mwl8k.c b/drivers/net/wireless/mwl8k.c
index b543defdde8a..aba45ca43da7 100644
--- a/drivers/net/wireless/mwl8k.c
+++ b/drivers/net/wireless/mwl8k.c
@@ -1990,11 +1990,7 @@ static int mwl8k_cmd_radio_enable(struct ieee80211_hw *hw)
1990static int 1990static int
1991mwl8k_set_radio_preamble(struct ieee80211_hw *hw, bool short_preamble) 1991mwl8k_set_radio_preamble(struct ieee80211_hw *hw, bool short_preamble)
1992{ 1992{
1993 struct mwl8k_priv *priv; 1993 struct mwl8k_priv *priv = hw->priv;
1994
1995 if (hw == NULL || hw->priv == NULL)
1996 return -EINVAL;
1997 priv = hw->priv;
1998 1994
1999 priv->radio_short_preamble = short_preamble; 1995 priv->radio_short_preamble = short_preamble;
2000 1996