forked from Minki/linux
qlogic: get rid of a redundant test for NULL before call to release_firmware()
Since release_firmware() deals gracefully with being passed a NULL pointer there is no reason to test explicitly before calling the function. Signed-off-by: Jesper Juhl <jj@chaosbits.net> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
parent
294ca868ed
commit
62baaf34dd
@ -1261,8 +1261,7 @@ next:
|
||||
void
|
||||
netxen_release_firmware(struct netxen_adapter *adapter)
|
||||
{
|
||||
if (adapter->fw)
|
||||
release_firmware(adapter->fw);
|
||||
release_firmware(adapter->fw);
|
||||
adapter->fw = NULL;
|
||||
}
|
||||
|
||||
|
@ -1321,8 +1321,7 @@ next:
|
||||
void
|
||||
qlcnic_release_firmware(struct qlcnic_adapter *adapter)
|
||||
{
|
||||
if (adapter->fw)
|
||||
release_firmware(adapter->fw);
|
||||
release_firmware(adapter->fw);
|
||||
adapter->fw = NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user