From patchwork Mon Jul 13 07:46:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 235320 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp2611191ilg; Mon, 13 Jul 2020 00:48:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXWnpcOFCKjjeZMSV/T2y4avFLUJdv2YXIoibZ/zzhbpN9BKWg5jlCRqwIFKGzgaGwMMLD X-Received: by 2002:a05:6402:1a42:: with SMTP id bf2mr80802054edb.292.1594626481766; Mon, 13 Jul 2020 00:48:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594626481; cv=none; d=google.com; s=arc-20160816; b=Gl83bhLK2RLTnav5BsEYy2264Yu30YZEb52psx/VWw8MO0a8z3VNY4v+jtKrpzJps1 hp1UgJNCxNzx5t/ZFqDFTpE9543x8k5L9qoSWGIZCyBoD6+xGboQZvjM/q5LxMpqwOmL WqhSOYKdGBeYNdg/FPFqd+bkfBdgJtN+4bjlQeeqIpjHAwOHEG/r92B70tzPWpPaYukk NYo93X+vQOisC4yjZXhZHbEUhUzx6NGATssejJQTUAEhERnFF36BXIeyg00kFN6qrl7A 1m9dcrbptR5hpnirO7i3Vu2qS87aw5LH7YPo/JyOdEMrZwemJGqoBSPcdA+Bj1W6xc5K kkeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=cqbTOjU/FsSc/cHhe4oGvv9xN2ZDzn7IWu0NGLngM90=; b=IE6mCnHeCLPd0sc8LtZjdWOsJwKzH4m/lpn1679MCxPlDOzS2cfqbzgFU7hJ9z0LAp hk6pa9X/j4BgpccqBBcmcoblLXkTAGZ1JMWWOyR53ifGVhrjIEXdrb3IkXHHauDwvYv9 uat9YZ0QNM5HM31lt4vaZIASfg5OiN5vd9CBddAbijoD6LGlrhck2u0NbDDkRHgzOSGe vGYOQArkC25Y89MzzMv0Vt4NqafHtiMbxQQBZyY8i4bPdkoUhfKbKnfk+aKbA1hytg/M leh3TNM9zBDWEYAiDn9mHbvaWfFG33EU3N3QUBjbEJXjQdzszpnDWPspib0BJcyk+Aik Kyew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=E9Nk6MmL; spf=pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e13si8452918ejx.153.2020.07.13.00.48.01 for ; Mon, 13 Jul 2020 00:48:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=E9Nk6MmL; spf=pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729330AbgGMHrL (ORCPT ); Mon, 13 Jul 2020 03:47:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729308AbgGMHrK (ORCPT ); Mon, 13 Jul 2020 03:47:10 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87ADDC061794 for ; Mon, 13 Jul 2020 00:47:10 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id q15so12318430wmj.2 for ; Mon, 13 Jul 2020 00:47:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=cqbTOjU/FsSc/cHhe4oGvv9xN2ZDzn7IWu0NGLngM90=; b=E9Nk6MmLMhgrZz8qU9tuzg3glTjGkXnr/niB1TyY/fTrlnVs71sCgumacmSdGvGHkm ZA777PveMNU+wJKYfcxon91UkP+MxOFi15Tmgk8LvwGpo88LSBr9Zm/uwWWAAkAkc9K4 1o8NeNKYjt+dRhvC2ui+sXHgTgE9LRDoGvNZB8IG4S+7BCNocIhR0xJLeni+TDiAgpj+ I7rxuvHk3DcJSxLSDFT8lJ8qo0EVLaHRBFWkWAhDYtQmFp8euody7NnsN1D9liTfun4R QLdZxrsCDvyqeZhnRSuRNDiz1W+zDuZPnJYgBQDOkQuW9aILooI9eB9N9fpCxaSduIYv TUXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=cqbTOjU/FsSc/cHhe4oGvv9xN2ZDzn7IWu0NGLngM90=; b=RxGEFIG5I1mE6EyEMW+Gs/seuUqpDcEb6795G2iHoZTXGJixcwEqcjS2DwXwLe1ZRj 5OxIEugtpLFiCub5b3eM18sVidN/A3GG8ImVLMNXjlMJVavSZ6lBXUUXebzoPdaSwCAs RGmNW0oaiQeHQkL2NarUgeDMb/vDYFTbIlbzfmwt7mwuC3dIA3gXbKInflDLbxrffVPc uLqtPYAcueed4dI+2Rl1Hf8DxB53Sf09Mc/wq5vbvEszrGxRrw2Dfvl3HQFAclHL3R/a dIHq7GKk1+a+9pXmC5IxuNFW2n7yUg+UGUB35VdFGyVytzDB6mOMPuFiEydz8W4dX8C4 +L8g== X-Gm-Message-State: AOAM531f6l+rYLQokkVOTs4C4DjnqEXDMgBgFaXiRPHEvFMKXRKRgBda aaF0+s3oh6pdZZqmqJtfjWaihA== X-Received: by 2002:a1c:5646:: with SMTP id k67mr18275780wmb.61.1594626429223; Mon, 13 Jul 2020 00:47:09 -0700 (PDT) Received: from localhost.localdomain ([2.31.163.6]) by smtp.gmail.com with ESMTPSA id k11sm25142488wrd.23.2020.07.13.00.47.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jul 2020 00:47:08 -0700 (PDT) From: Lee Jones To: jejb@linux.ibm.com, martin.petersen@oracle.com Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Lee Jones , Hannes Reinecke , "Daniel M. Eischen" , Doug Ledford Subject: [PATCH v2 20/29] scsi: aic7xxx: aic7xxx_osm: Remove unused variable 'targ' Date: Mon, 13 Jul 2020 08:46:36 +0100 Message-Id: <20200713074645.126138-21-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200713074645.126138-1-lee.jones@linaro.org> References: <20200713074645.126138-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Looks like checking the 'targ' was removed in 2005. Fixes the following W=1 kernel build warning(s): drivers/scsi/aic7xxx/aic7xxx_osm.c: In function ‘ahc_send_async’: drivers/scsi/aic7xxx/aic7xxx_osm.c:1604:28: warning: variable ‘targ’ set but not used [-Wunused-but-set-variable] 1604 | struct ahc_linux_target *targ; | ^~~~ Cc: Hannes Reinecke Cc: "Daniel M. Eischen" Cc: Doug Ledford Signed-off-by: Lee Jones --- drivers/scsi/aic7xxx/aic7xxx_osm.c | 2 -- 1 file changed, 2 deletions(-) -- 2.25.1 Reviewed-by: Hannes Reinecke diff --git a/drivers/scsi/aic7xxx/aic7xxx_osm.c b/drivers/scsi/aic7xxx/aic7xxx_osm.c index cc4c7b1781466..ed437c16de881 100644 --- a/drivers/scsi/aic7xxx/aic7xxx_osm.c +++ b/drivers/scsi/aic7xxx/aic7xxx_osm.c @@ -1592,7 +1592,6 @@ ahc_send_async(struct ahc_softc *ahc, char channel, case AC_TRANSFER_NEG: { struct scsi_target *starget; - struct ahc_linux_target *targ; struct ahc_initiator_tinfo *tinfo; struct ahc_tmode_tstate *tstate; int target_offset; @@ -1626,7 +1625,6 @@ ahc_send_async(struct ahc_softc *ahc, char channel, starget = ahc->platform_data->starget[target_offset]; if (starget == NULL) break; - targ = scsi_transport_target_data(starget); target_ppr_options = (spi_dt(starget) ? MSG_EXT_PPR_DT_REQ : 0)