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,7 +1261,6 @@ next:
|
||||||
void
|
void
|
||||||
netxen_release_firmware(struct netxen_adapter *adapter)
|
netxen_release_firmware(struct netxen_adapter *adapter)
|
||||||
{
|
{
|
||||||
if (adapter->fw)
|
|
||||||
release_firmware(adapter->fw);
|
release_firmware(adapter->fw);
|
||||||
adapter->fw = NULL;
|
adapter->fw = NULL;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1321,7 +1321,6 @@ next:
|
||||||
void
|
void
|
||||||
qlcnic_release_firmware(struct qlcnic_adapter *adapter)
|
qlcnic_release_firmware(struct qlcnic_adapter *adapter)
|
||||||
{
|
{
|
||||||
if (adapter->fw)
|
|
||||||
release_firmware(adapter->fw);
|
release_firmware(adapter->fw);
|
||||||
adapter->fw = NULL;
|
adapter->fw = NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue