mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-08 19:46:38 +07:00
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:
parent
f512311709
commit
e3e07e0b10
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user