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

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

qla2xxx: Remove redundant NULL check before release_firmware() call.



release_firmware() checks for NULL pointers internally so checking
before calling it is redundant.

Signed-off-by: default avatarJesper Juhl <jj@chaosbits.net>
Acked-by: default avatarChad Dupuis <chad.dupuis@qlogic.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent ee51f443
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -4106,7 +4106,6 @@ qla2x00_release_firmware(void)

	mutex_lock(&qla_fw_lock);
	for (idx = 0; idx < FW_BLOBS; idx++)
		if (qla_fw_blobs[idx].fw)
		release_firmware(qla_fw_blobs[idx].fw);
	mutex_unlock(&qla_fw_lock);
}