mirror of
https://github.com/torvalds/linux.git
synced 2024-10-30 16:51:45 +00:00
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: Jesper Juhl <jj@chaosbits.net> Acked-by: Chad Dupuis <chad.dupuis@qlogic.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
parent
ee51f4432e
commit
cf92549f1c
@ -4106,8 +4106,7 @@ 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);
|
||||
release_firmware(qla_fw_blobs[idx].fw);
|
||||
mutex_unlock(&qla_fw_lock);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user