Skip to contentSkip to conversation

hpsa: return 0 from driver probe function on success, not 1

PATCH New Stephen M. Cameron 1 participant 1 message Oct 29, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hpsa: return 0 from driver probe function on success, not 1

From: Stephen M. Cameron <[email protected]>

A return value of 1 is interpreted as an error

---
 drivers/scsi/hpsa.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/scsi/hpsa.c +1 -1
index 891c86b..3c97974 100644
@@ -4926,7 +4926,7 @@ reinit_after_soft_reset:
 	hpsa_hba_inquiry(h);
 	hpsa_register_scsi(h);	/* hook ourselves into SCSI subsystem */
 	start_controller_lockup_detector(h);
-	return 1;
+	return 0;
 
 clean4:
 	hpsa_free_sg_chain_blocks(h);