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: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
Jesper Juhl 2012-04-09 22:52:34 +02:00 committed by John W. Linville
parent f512311709
commit e3e07e0b10

View File

@ -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;
}