Commit e3e07e0b authored by Jesper Juhl's avatar Jesper Juhl Committed by John W. Linville

ipw2100: remove a redundant NULL check before calling release_firmware()

The release_firmware() function does its own NULL test so a test
before calling it is rather redundant.
Signed-off-by: default avatarJesper Juhl <jj@chaosbits.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent f5123117
...@@ -8508,7 +8508,6 @@ static void ipw2100_release_firmware(struct ipw2100_priv *priv, ...@@ -8508,7 +8508,6 @@ static void ipw2100_release_firmware(struct ipw2100_priv *priv,
struct ipw2100_fw *fw) struct ipw2100_fw *fw)
{ {
fw->version = 0; fw->version = 0;
if (fw->fw_entry)
release_firmware(fw->fw_entry); release_firmware(fw->fw_entry);
fw->fw_entry = NULL; fw->fw_entry = NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment