From: Johannes Thumshirn Date: Mon, 9 Apr 2018 12:24:23 +0000 (+0200) Subject: scsi: qla2xxx: correctly shift host byte X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f7d5182c8fd9d220fa9ebde2e30ff0ba0ef714b5;p=linux.git scsi: qla2xxx: correctly shift host byte The SCSI host byte has to be shifted by 16 not 6. As Bart pointed out this patch does not change any functionality because DID_OK == 0, but a wrong shift is irritating for the reviewer. Signed-off-by: Johannes Thumshirn Reviewed-by: Bart Van Assche Signed-off-by: Martin K. Petersen --- diff --git a/drivers/scsi/qla2xxx/qla_isr.c b/drivers/scsi/qla2xxx/qla_isr.c index 7cacdc3408fa0..a47a582b03971 100644 --- a/drivers/scsi/qla2xxx/qla_isr.c +++ b/drivers/scsi/qla2xxx/qla_isr.c @@ -2347,7 +2347,7 @@ done: bsg_job->reply_len = sizeof(struct fc_bsg_reply); /* Always return DID_OK, bsg will send the vendor specific response * in this case only */ - sp->done(sp, DID_OK << 6); + sp->done(sp, DID_OK << 16); }