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:
Jesper Juhl 2012-04-09 22:50:31 +02:00 committed by Jiri Kosina
parent 294ca868ed
commit 62baaf34dd
2 changed files with 2 additions and 4 deletions

View File

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

View File

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