Skip to content

Commit

Permalink
ipw2100: 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 a test
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 f512311 commit e3e07e0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/wireless/ipw2x00/ipw2100.c
Original file line number Diff line number Diff line change
Expand Up @@ -8508,8 +8508,7 @@ static void ipw2100_release_firmware(struct ipw2100_priv *priv,
struct ipw2100_fw *fw)
{
fw->version = 0;
if (fw->fw_entry)
release_firmware(fw->fw_entry);
release_firmware(fw->fw_entry);
fw->fw_entry = NULL;
}

Expand Down

0 comments on commit e3e07e0

Please sign in to comment.