Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 62baaf34 authored by Jesper Juhl's avatar Jesper Juhl Committed by Jiri Kosina
Browse files

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: default avatarJesper Juhl <jj@chaosbits.net>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 294ca868
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1261,7 +1261,6 @@ next:
void
netxen_release_firmware(struct netxen_adapter *adapter)
{
	if (adapter->fw)
	release_firmware(adapter->fw);
	adapter->fw = NULL;
}
+1 −2
Original line number Diff line number Diff line
@@ -1321,7 +1321,6 @@ next:
void
qlcnic_release_firmware(struct qlcnic_adapter *adapter)
{
	if (adapter->fw)
	release_firmware(adapter->fw);
	adapter->fw = NULL;
}