[SCSI] qla2xxx: negative error return in qla2x00_change_queue_depth()
authorRoel Kluin <roel.kluin@gmail.com>
Fri, 29 Jan 2010 10:25:19 +0000 (11:25 +0100)
committerJames Bottomley <James.Bottomley@suse.de>
Wed, 17 Feb 2010 19:15:39 +0000 (13:15 -0600)
The *change_queue_depth functions usually return a negative error return.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/qla2xxx/qla_os.c

index ddc1d3def36cee25deed74e372d919887d5565ef..82e57d778428d79ea2b0930f22827e15733436d0 100644 (file)
@@ -1258,7 +1258,7 @@ qla2x00_change_queue_depth(struct scsi_device *sdev, int qdepth, int reason)
                qla2x00_adjust_sdev_qdepth_up(sdev, qdepth);
                break;
        default:
-               return EOPNOTSUPP;
+               return -EOPNOTSUPP;
        }
 
        return sdev->queue_depth;