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

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
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment