Message ID | 20210317085701.2891231-8-lee.jones@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp284115jai; Wed, 17 Mar 2021 01:58:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRKWaifSwj1UsvxBZy6gZLxgFJmsaUQZ1bPuhE6f6bKAEhQAFQpZEVsZhmehC5kHlBiQpY X-Received: by 2002:a17:906:2816:: with SMTP id r22mr33670629ejc.2.1615971508177; Wed, 17 Mar 2021 01:58:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615971508; cv=none; d=google.com; s=arc-20160816; b=a30PhAzjSjrdsKI/LSgqgZmQJhRfxGCTeRsmPMiV5FkTMgtDFWkDDTxrvOZE6vwdJA mWS2DfvejfxX4hgPUFKAQZiCC83GjqRWrqgbayq7pg1l0P4kMjTMwj4rEreCBv28VZPZ jVcpMEhg2tmmPWr8kQuZRwZuZ2pdOkGg0izRh9+9ttMs3T+d4e9ycqdAwUT3NSxQCKcF 0lNFvu9lDFocVnexjd5aIO4WDNrYd80Lv2GPWrJa51qjxOJXXvKD9SWfLMxw+BDB6ZII AmpepZ//ZlB+q3CU59tarbrHOEfYU0h5FmVJbxEjqoclI4pxUxU50vxznr3HGI34dRms vrTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=im+Evr3MfJAtsbpRKrSvBZYIR3R8HYWcJI2GsyeTWRU=; b=Wu0yYtH55VI0Ptryw5HmDZG5GnRmio+qF7hPp380YkIw3sz2xrbAYkMPnMoKbSDjHT qIAe9xn8ryWN+tIsURWLKK8ZJ4TQJgP57ayLsThh22GvaP1ph+b+tJTZVNc4VRXnN0oq Xc2eHxytgAOVtYSDA0PsNGIYSFJskslp4HIPa/KI5CzviiMo1WFzm76KVBaRX0gHrMHl j8AE5RgUi+x0aP+wmDkOZ/QoCfp6lbdgPijiShM8z4TQBGD5dKcn42Z5ifhoRMOPrdUi r7rezTP80y7iVfBE5l8NtPvQN3UYT7LGciJSAuCkC92z/VNdsL89lfYeEaRx3yTeqmHq ovHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DM1ORFPt; 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: <linux-scsi-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kd10si15492094ejc.41.2021.03.17.01.58.28 for <patch@linaro.org>; Wed, 17 Mar 2021 01:58:28 -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=DM1ORFPt; 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 S229903AbhCQI55 (ORCPT <rfc822;patch@linaro.org>); Wed, 17 Mar 2021 04:57:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229732AbhCQI5V (ORCPT <rfc822; linux-scsi@vger.kernel.org>); Wed, 17 Mar 2021 04:57:21 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2482CC061764 for <linux-scsi@vger.kernel.org>; Wed, 17 Mar 2021 01:57:14 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id b2-20020a7bc2420000b029010be1081172so825417wmj.1 for <linux-scsi@vger.kernel.org>; Wed, 17 Mar 2021 01:57:14 -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=im+Evr3MfJAtsbpRKrSvBZYIR3R8HYWcJI2GsyeTWRU=; b=DM1ORFPtKVJaRVNMisxtioWMH2mlZJEFFRCvJipOaWkDHZB63Rem+T6nvpCOVzeY8q NZp+UaPQrGC+vQ/evx+UneOrjxZMFwIJ8DWaxESSZN544FxOVNje/CsPouZ+/l/dQXRo sk0zzzGiYEjyLYjkXeYU/7UIXcKUXYvsZ7xdBHGjWi0+CnfzG7WHDINxuGoIBzUscPxc 5idmZvijQBsKN1M5I+LzcN2E4EjAN6A+YQypx3IUXAQn4ZFXfGZ2uIbqsRLAqIQM9C5x BpJmHm4lQFHacPfuWXw+Svk06up4lWy6aqB4wWxqsrFFRF874LoyFzl/4y4qQHsytKaY 8JAw== 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=im+Evr3MfJAtsbpRKrSvBZYIR3R8HYWcJI2GsyeTWRU=; b=YU9sNBud2YtH/ao+0U0X6NVSL9VTgFHI3/KDWu9yQrElt+dMrpxrnXyZ+zB9i6VHRA Gp48bohCWAXepv4wMDrQi8+cyFiMmb+xiKMuwGO1W0PePkbYRUaLFtkR7sTrGmuU2aIG ittqScdsMDmuWOH2C/ShFcdlt1gprBd7/Zgp678Tj0HLJKQlrAj7V5Gemwe9ajKuREy7 1uiHbwkktSzucyiz73GLunfiEzMVWiU4SXgSfnw5VJJNjY16k5zL4W7eqcEwvvN2+f0k J0fg46lKn4CSXb1YJOA3kGhkqGa+YgMyDYln6G2JxqQtklcqiYzRc11RORC5UxwVmNZn PeHA== X-Gm-Message-State: AOAM530YWSUYCHSisoSbGhqFwbqDTuSjIiDit2KXogFiism5GpK2ZD7H dfYFqANKz/awMbMntju1UMjEcw== X-Received: by 2002:a7b:c195:: with SMTP id y21mr2634320wmi.178.1615971432922; Wed, 17 Mar 2021 01:57:12 -0700 (PDT) Received: from dell.default ([91.110.221.194]) by smtp.gmail.com with ESMTPSA id j123sm1807243wmb.1.2021.03.17.01.57.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Mar 2021 01:57:12 -0700 (PDT) From: Lee Jones <lee.jones@linaro.org> To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, "James E.J. Bottomley" <jejb@linux.ibm.com>, "Martin K. Petersen" <martin.petersen@oracle.com>, Bas Vermeulen <bvermeul@blackstar.xs4all.nl>, Christoph Hellwig <hch@lst.de>, Brian Macy <bmacy@sunshinecomputing.com>, linux-scsi@vger.kernel.org Subject: [PATCH 07/18] scsi: initio: Remove unused variable 'prev' Date: Wed, 17 Mar 2021 08:56:50 +0000 Message-Id: <20210317085701.2891231-8-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210317085701.2891231-1-lee.jones@linaro.org> References: <20210317085701.2891231-1-lee.jones@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <linux-scsi.vger.kernel.org> X-Mailing-List: linux-scsi@vger.kernel.org |
Series |
Rid W=1 warnings in SCSI
|
expand
|
diff --git a/drivers/scsi/initio.c b/drivers/scsi/initio.c index 814acc57069dc..926a7045c2e5c 100644 --- a/drivers/scsi/initio.c +++ b/drivers/scsi/initio.c @@ -866,17 +866,16 @@ static void initio_unlink_busy_scb(struct initio_host * host, struct scsi_ctrl_b struct scsi_ctrl_blk *initio_find_busy_scb(struct initio_host * host, u16 tarlun) { - struct scsi_ctrl_blk *tmp, *prev; + struct scsi_ctrl_blk *tmp; u16 scbp_tarlun; - prev = tmp = host->first_busy; + tmp = host->first_busy; while (tmp != NULL) { scbp_tarlun = (tmp->lun << 8) | (tmp->target); if (scbp_tarlun == tarlun) { /* Unlink this SCB */ break; } - prev = tmp; tmp = tmp->next; } #if DEBUG_QUEUE
Fixes the following W=1 kernel build warning(s): drivers/scsi/initio.c: In function ‘initio_find_busy_scb’: drivers/scsi/initio.c:869:30: warning: variable ‘prev’ set but not used [-Wunused-but-set-variable] Cc: "James E.J. Bottomley" <jejb@linux.ibm.com> Cc: "Martin K. Petersen" <martin.petersen@oracle.com> Cc: Bas Vermeulen <bvermeul@blackstar.xs4all.nl> Cc: Christoph Hellwig <hch@lst.de> Cc: Brian Macy <bmacy@sunshinecomputing.com> Cc: linux-scsi@vger.kernel.org Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/scsi/initio.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) -- 2.27.0