Przeglądaj źródła

[SCSI] 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.

Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Kashyap, Desai 15 lat temu
rodzic
commit
9858ae3801
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      drivers/message/fusion/mptscsih.c

+ 1 - 1
drivers/message/fusion/mptscsih.c

@@ -1796,7 +1796,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;
 	}