Received: by 10.213.65.68 with SMTP id h4csp2553404imn; Mon, 9 Apr 2018 05:31:06 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+FzsZYGIQ9vCZ65xYNTQGpiYxLO1XaAVKAZyfQszuuc9Zjf9mg3I1ZgBzb/w0s9TXuquQU X-Received: by 10.98.212.67 with SMTP id u3mr14971075pfl.58.1523277066063; Mon, 09 Apr 2018 05:31:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523277066; cv=none; d=google.com; s=arc-20160816; b=PsKQZ6ajFrNXeizJ2UmPsyEhM4Kj5d1S4uIu482S2UVxmLR4+ZsACSxAJMSsMafHnu POMkuqlpxKksJgZPJqufPd34u2lelwod1a+GkOygQOtqlekniXSzeSPeN8OEAFD9cOXG 3ZnqRCcXmj0C9KFplswO2DuzcENdLlQ0SvM/d+NlE8iDDOcp6nSH05mNSt2w/TrDJEi5 lJnNu27aBq63eEdNvSLI9kW5TdvQ+ItOvCNo+9yC7inO66CDvfxuFR38OI4Rgx87GGhq EerZ5P1ommpgOj24PI6F/7XTTT+swzMFlC1Gab6k7KZvf/nYaHwbUZ/jfckWEmY4cJ35 Nrqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=mexJBestkMzKLBrhbv4FTzN4dx408iVo21TPX5PArvI=; b=IUf22vCsOqlD+JYJJeND6/ddIBzGC/20WyCUG8jFBA4xnOvDRVUvRe1PoHtetpzksU aJAyOGSK1WH3/sw4Vs2jz3Yl8S88YTisTlt3OsB0u6iTuQLs3ynPgrV7Tr3KAoixLtSG mQ+BBw3UU5QkJS1ssndaXaDLLFPs8HqDGEtfmxAYc9w+at/M7lfNzgr8pcHjMJN+ZAsw cxrJnw5CwiGwpmCZaoPXdJGOdMsOBDXYkupUb6KuOH1s3Qfwj0tISB7GUmZB3+mRmvnI LQ9prNGbNAsIjRcP6iZXIFoKJLWjex2fL6ByMbi3jDmtMkQdT0sBCDsLJ83lv/y7vpWn QnYw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y21si186771pfi.195.2018.04.09.05.30.29; Mon, 09 Apr 2018 05:31:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751721AbeDIM0u (ORCPT + 99 others); Mon, 9 Apr 2018 08:26:50 -0400 Received: from mx2.suse.de ([195.135.220.15]:38911 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751456AbeDIM0t (ORCPT ); Mon, 9 Apr 2018 08:26:49 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id BB533AEA5; Mon, 9 Apr 2018 12:26:47 +0000 (UTC) From: Johannes Thumshirn To: "Martin K . Petersen" Cc: Bart Van Assche , Linux Kernel Mailinglist , Linux SCSI Mailinglist , Johannes Thumshirn Subject: [PATCH v2] qla2xxx: correctly shift host byte Date: Mon, 9 Apr 2018 14:24:23 +0200 Message-Id: <20180409122423.32231-1-jthumshirn@suse.de> X-Mailer: git-send-email 2.16.2 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- Changes to v1: * Add Bart's review remark, that I'm not changing actual functionality as DID_OK == 0 drivers/scsi/qla2xxx/qla_isr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/qla2xxx/qla_isr.c b/drivers/scsi/qla2xxx/qla_isr.c index 89f93ebd819d..49d67e1d571f 100644 --- a/drivers/scsi/qla2xxx/qla_isr.c +++ b/drivers/scsi/qla2xxx/qla_isr.c @@ -2368,7 +2368,7 @@ qla25xx_process_bidir_status_iocb(scsi_qla_host_t *vha, void *pkt, 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); } -- 2.16.2