Skip to content

Commit

Permalink
ipw2200: remove a redundant NULL check before calling release_firmware()
Browse files Browse the repository at this point in the history
The release_firmware() function does its own NULL test, so testing
before calling it is rather redundant.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Jesper Juhl authored and John W. Linville committed Apr 12, 2012
1 parent 7403302 commit d144f53
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/wireless/ipw2x00/ipw2200.c
Original file line number Diff line number Diff line change
Expand Up @@ -3657,8 +3657,7 @@ static int ipw_load(struct ipw_priv *priv)
priv->rxq = NULL;
}
ipw_tx_queue_free(priv);
if (raw)
release_firmware(raw);
release_firmware(raw);
#ifdef CONFIG_PM
fw_loaded = 0;
raw = NULL;
Expand Down

0 comments on commit d144f53

Please sign in to comment.