]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
[SCSI] mptfusion : mptscsih_abort return value should be SUCCESS instead of value 0.
authorKashyap, Desai <kashyap.desai@lsi.com>
Mon, 25 Jan 2010 10:50:52 +0000 (16:20 +0530)
committerJames Bottomley <James.Bottomley@suse.de>
Mon, 8 Feb 2010 19:40:17 +0000 (13:40 -0600)
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>
drivers/message/fusion/mptscsih.c

index 57752751712bb087127f8ab8ccbe1a38252d8bc5..81279b3d694c670ab982520eaafbf6ef2ace54cf 100644 (file)
@@ -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;
        }