Skip to content

Commit

Permalink
mwl8k: hw is never NULL in mwl8k_set_radio_preamble()
Browse files Browse the repository at this point in the history
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Lennert Buytenhek authored and John W. Linville committed Dec 28, 2009
1 parent 55489b6 commit 99200a9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions drivers/net/wireless/mwl8k.c
Original file line number Diff line number Diff line change
Expand Up @@ -1990,11 +1990,7 @@ static int mwl8k_cmd_radio_enable(struct ieee80211_hw *hw)
static int
mwl8k_set_radio_preamble(struct ieee80211_hw *hw, bool short_preamble)
{
struct mwl8k_priv *priv;

if (hw == NULL || hw->priv == NULL)
return -EINVAL;
priv = hw->priv;
struct mwl8k_priv *priv = hw->priv;

priv->radio_short_preamble = short_preamble;

Expand Down

0 comments on commit 99200a9

Please sign in to comment.