Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp631351imm; Wed, 17 Oct 2018 06:02:06 -0700 (PDT) X-Google-Smtp-Source: ACcGV63iIuccvrdj0dpuEKuXrTN+DrdmwSPvjw82rXBJ1EQvuukl4SOeWAxFAGTgx2pSJjSoVqwv X-Received: by 2002:a62:475c:: with SMTP id u89-v6mr26274108pfa.212.1539781326310; Wed, 17 Oct 2018 06:02:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539781326; cv=none; d=google.com; s=arc-20160816; b=vfyiJR07Kbu1bm0689W44PnnGeknPNW4VO7V7abmCcYv1kHlyuIW9Dyyn7xeWoNuGd RxuTU6vPJb+Sx6GLJy0GXk6+w89kv0Y8WHHbdIOpG4fglXNocu3Wp7yNERoBmNVxnRa0 DoVS25OT6ZIXpnd2zNuZwIBKAj1qmRhQCWvuNaLdat11ILsxiwP8j0BLt89de6KamZhi KOkn978N9wG5zAHdDDfaimsYmBXjgVFUXP4ok9VVeXOsiRYT2QcIPJQf39iT41W6VtSc QtUM3wVPFNQOetwDrDOOAQ/a92nGCqgE6Y21oe2oOzDMqeUFSPKi+ySNqpn3jvKIg7+Y ue0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=9xclRfRultIpkAttQFcqS5HuG2TTn1wrfHZuB5k9Lgc=; b=hHNeCN8Ibtaza2vbXGtrrwfeVEOGXRjDiBO6nlRr0/ZCqnvYSSTO6NA4k25YByY8ob 4tEVTIYB8ejeYLUF7WCT7RFNGv/Y1d0i1cKjFbY3OHwlM9BxpjwgNwMWWUsUOTVxp8S3 KvHcnsPKhhQOwd7PE7mqeZxRYbPRokuLlBzWQ4NZPi1jOkAB+EmlyHPahQsplR3Av7zJ RdSA05Lzv5bEi/cr3qje4MIbXJsaIBEO+L1qahGfs2JzXuThDThoXiMSJi0iuZEveMTI rDU+sXakrAwa+5HMnWeG7xVo+dJ4IjPLFuuql5vyv4vL9qUl0qfCkmz+iHmTJtq+otRc 5Azw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@infradead.org header.s=bombadil.20170209 header.b=mpkO3PZn; 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 l14-v6si16656882pfo.118.2018.10.17.06.01.50; Wed, 17 Oct 2018 06:02: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; dkim=neutral (body hash did not verify) header.i=@infradead.org header.s=bombadil.20170209 header.b=mpkO3PZn; 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 S1727262AbeJQU4X (ORCPT + 99 others); Wed, 17 Oct 2018 16:56:23 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:43944 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726961AbeJQU4X (ORCPT ); Wed, 17 Oct 2018 16:56:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Fs1D7wYZueiWIUgIpfYlZttAIkEuB2iER5LXd+yz1Oo=; b=mpkO3PZnNW3F6/YGdANZctrbm e78Dc6tMu3ksZIpZSdhKBlo0Df3bYxb9P6aFzj/nG83Y/Wr+Y11ati/OeaG+lo8GFPxhjOAJ8bYSf OorazqRxy8yln/eLiITveEzbDxZcTn7ZXNE2evpKve5KZAFSJ25N6VtBc/vQoY/QrwsUbuPKULVhX DgNB8sxkuRzQwyktNX58KCfASLyK1I3gAgYXVOCO2D8hnOcroCmczcuB8XzPOJbHDs+a+t7VuVDLR k60mgwu4n+4aASeY7NBhLGdhI/C0pwIdeVh24gAUvsrW4Yyc9FzU6ASQUztHrEAzma3vHtPaPsD94 9S9/Yhu/A==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1gClR1-0004WH-RH; Wed, 17 Oct 2018 13:00:23 +0000 Date: Wed, 17 Oct 2018 06:00:22 -0700 From: Matthew Wilcox To: Johannes Thumshirn Cc: YueHaibing , hare@suse.com, jejb@linux.vnet.ibm.com, martin.petersen@oracle.com, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org Subject: Re: [PATCH -next] advansys: remove set but not used variable 'srb_tag' in adv_isr_callback Message-ID: <20181017130022.GA3575@bombadil.infradead.org> References: <20181017123432.18304-1-yuehaibing@huawei.com> <4950b4fe-61b5-e1c3-9d16-7643107857a5@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4950b4fe-61b5-e1c3-9d16-7643107857a5@suse.de> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 17, 2018 at 02:49:50PM +0200, Johannes Thumshirn wrote: > On 17/10/18 14:34, YueHaibing wrote: > > - srb_tag = le32_to_cpu(scsiqp->srb_tag); > > scp = scsi_host_find_tag(boardp->shost, scsiqp->srb_tag); > > Shouldn't this be: > scp = scsi_host_find_tag(boardp->shost, > le32_to_cpu(scsiqp->srb_tag)); I don't think so. Look at how scsiqp->srb_tag is set: adv_build_req(struct asc_board *boardp, struct scsi_cmnd *scp, ADV_SCSI_REQ_Q **adv_scsiqpp) { + u32 srb_tag = scp->request->tag; ... + scsiqp->srb_tag = srb_tag; If we're not converting it to le32 on the way in, we probably don't want to convert it back on the way out. Please don't make me power up my PA-RISC machine with an Advansys card in it, just to find out ...