Skip to contentSkip to conversation

mptfusion : mptscsih_abort return value should be SUCCESS instead of value 0.

PATCH New Kashyap, Desai 1 participant 1 message Jan 25, 2010

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

PATCH 1/1 mptfusion : mptscsih_abort return value should be SUCCESS instead of value 0.

retval should be SUCCESS/FAILED which is defined at scsi.h retval = 0 is directing wrong return value. It must be retval = SUCCESS.

---

drivers/message/fusion/mptscsih.c +1 -1
index 8128d30..4a7d1af 100644
@@ -1801,7 +1801,7 @@ mptscsih_abort(struct scsi_cmnd * SCpnt)
 		dtmprintk(ioc, printk(MYIOC_s_DEBUG_FMT "task abort: "
 		   "Command not in the active list! (sc=%p)\n", ioc->name,
 		   SCpnt));
-		retval = 0;
+		retval = SUCCESS;
 		goto out;
 	}