lkml.org 
[lkml]   [2010]   [Feb]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH] qla2xxx: negative error return in qla2x00_change_queue_depth()
    Date
    Acked-by: Giridhar Malavali <giridhar.malavali@qlogic.com>

    On Jan 29, 2010, at 2:25 AM, Roel Kluin wrote:

    > The *change_queue_depth functions usually return a negative error
    > return.
    >
    > Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
    > ---
    > diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/
    > qla_os.c
    > index 8529eb1..0753877 100644
    > --- a/drivers/scsi/qla2xxx/qla_os.c
    > +++ b/drivers/scsi/qla2xxx/qla_os.c
    > @@ -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;



    \
     
     \ /
      Last update: 2010-02-02 20:51    [W:0.027 / U:0.132 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site