mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-13 16:50:05 +00: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)
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user