mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
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
2 changed files with 2 additions and 4 deletions
|
|
@ -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 a new issue