Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp788473ybh; Mon, 13 Jul 2020 00:50:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyufFe0Z/Uzlgqv9wugk/hwLwDbLMWuoyHk6OSqLquuoqNJ6T/oAYPAqojZFKwEUv01A7Gj X-Received: by 2002:a05:6402:1605:: with SMTP id f5mr95007340edv.8.1594626611195; Mon, 13 Jul 2020 00:50:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594626611; cv=none; d=google.com; s=arc-20160816; b=1Bp5dc5NDkp8seNF3VS7Tbc+5MEwyoSHat2TU761ewFKCvHiEbk0laFMCUdn2iGXj2 wUhapJt9bhy2eNJgb7HNh+pVeUbHaQqvHLYmOdaZHAthroVoafSOcM8qdo8w1suVvsDn QCI+CsHpjMaqnEdpi2DtHdH3K6j6bUERKkppy6kwecQHIpyQIMtTTgxMDZkIV8ML+smQ 57f3chogaYpVR3fxWLIiRxD0KGbHJXf4FdamAMAZIjMAJdxO+h1Dhufn6J1F0bgCtH4T NP6iEEyMloCe4xUPrhyILb0/7phm8oUGC9yx4GHCMg9q7YuYrLKO9rVKCDxtjjh5Ofb1 GOVA== 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=qQRZ+M2l4jH3MlfzrHhs+bgVgmbE53a5L3bRg+y3Bo8O/c3zrrIspMRgPNqf8GKHaP u+AcQ/9+Oaojm7pc96Gq0xUhIHvRGSstGFOj7+kT4YBivfV3ELSYl4KWvbNTQDPahfM0 4F4fD33YoQccQn0W2Wvsv/iewHHeNU18NZukXOpqEI9gptNaBDsxx7vN3HSEsfzctw46 87YQrK2cb3d5xMnK8TKvf02Byc+hCd8mNRIdWk8ZNzzT7jbM/24rVBwISTAaIMFp1f15 iautBE6fWsFmWQI+rJKHcgYtAOlJ6OJi8NjDpkA5EePsB+S/gsgtojDcRNoEsDtUII0O Qcfg== 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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 g10si9357251ejf.54.2020.07.13.00.49.48; Mon, 13 Jul 2020 00:50:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S1729442AbgGMHrV (ORCPT + 99 others); Mon, 13 Jul 2020 03:47:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729307AbgGMHrK (ORCPT ); Mon, 13 Jul 2020 03:47:10 -0400 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A6F2C061755 for ; Mon, 13 Jul 2020 00:47:10 -0700 (PDT) Received: by mail-wm1-x343.google.com with SMTP id g75so12302046wme.5 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=Y9LMtW8TlFMWItLJeGKsrV12jPj4wSnXfMNroatCUPhnn2A8lF24y6vGy/8LklbuiS Mto36189oqgGsoviTJRh4kAw7OsFwRqe2QQTVAVQ3m7SlL6LJcoDyJh4WaFpguWv7EJM 6tvaY1jNbNBdeLbYa4N5BlIH2cMa/Q4iv0WYL1MkVGoXfeFJPwowhkzfRV3Y7qL8IaLQ zqDMC/2cM/bMkdK061wnscmaeFVG8ZCCsdUrLxkTbx4zPzxASIxewS6Bl7iX6vQanQfk 7uli5pZiiGYmtcE49HiW0GuKYETD+8FuBl5LZse8EGqdCoRMMvAb5yI9AXTF3PhW0MIV /FLg== X-Gm-Message-State: AOAM532BOyYyyeN7CRzfJPWbBhH+x0V5eDQxewf7hvv8Rr5JrjvGmEf3 /JZ24DF1wDFm6fxAzkVecgovuQ== 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 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) 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) -- 2.25.1