Skip to contentSkip to conversation

qla4xxx: fix double printk on load

PATCH New Doug Maxey 1 participant 1 message Oct 6, 2006

Subsystems (2)
lore
Share & tools
lore

Doug Maxey

author
#0 lore raw

PATCH 1/1 qla4xxx: fix double printk on load

There is a dup printk at the tail of qla4xxx_module_init(). Remove the first instance as it's before the complete success of the function.
---

 drivers/scsi/qla4xxx/ql4_os.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/scsi/qla4xxx/ql4_os.c +1 -1
index 178fcdd..4fa0153 100644
@@ -1724,13 +1724,13 @@ static int __init qla4xxx_module_init(vo
 		goto release_srb_cache;
 	}
 
-	printk(KERN_INFO "QLogic iSCSI HBA Driver\n");
 	ret = pci_register_driver(&qla4xxx_pci_driver);
 	if (ret)
 		goto unregister_transport;
 
 	printk(KERN_INFO "QLogic iSCSI HBA Driver\n");
 	return 0;
+
 unregister_transport:
 	iscsi_unregister_transport(&qla4xxx_iscsi_transport);
 release_srb_cache: