提交 90449e5d 编写于 作者: J Jesper Juhl 提交者: Jiri Kosina

qla1280: Remove redundant NULL check before release_firmware() call

release_firmware() checks for NULL pointers internally so checking
before calling the function is redundant.
Signed-off-by: NJesper Juhl <jj@chaosbits.net>
Signed-off-by: NJiri Kosina <jkosina@suse.cz>
上级 3cc6e787
...@@ -4473,17 +4473,14 @@ qla1280_exit(void) ...@@ -4473,17 +4473,14 @@ qla1280_exit(void)
pci_unregister_driver(&qla1280_pci_driver); pci_unregister_driver(&qla1280_pci_driver);
/* release any allocated firmware images */ /* release any allocated firmware images */
for (i = 0; i < QL_NUM_FW_IMAGES; i++) { for (i = 0; i < QL_NUM_FW_IMAGES; i++) {
if (qla1280_fw_tbl[i].fw) { release_firmware(qla1280_fw_tbl[i].fw);
release_firmware(qla1280_fw_tbl[i].fw); qla1280_fw_tbl[i].fw = NULL;
qla1280_fw_tbl[i].fw = NULL;
}
} }
} }
module_init(qla1280_init); module_init(qla1280_init);
module_exit(qla1280_exit); module_exit(qla1280_exit);
MODULE_AUTHOR("Qlogic & Jes Sorensen"); MODULE_AUTHOR("Qlogic & Jes Sorensen");
MODULE_DESCRIPTION("Qlogic ISP SCSI (qla1x80/qla1x160) driver"); MODULE_DESCRIPTION("Qlogic ISP SCSI (qla1x80/qla1x160) driver");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册