From patchwork Tue Nov 1 12:32:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Ian King X-Patchwork-Id: 13651 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2934495wru; Tue, 1 Nov 2022 05:37:29 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7ZWBjIVTW61bYu7eziZCZPeqK8tyJWQXJuTnvuL9onpGpi6EDWi+d0TPYrnHqjC4pIg/XG X-Received: by 2002:a17:907:da5:b0:7ad:7e95:6513 with SMTP id go37-20020a1709070da500b007ad7e956513mr18650606ejc.442.1667306249118; Tue, 01 Nov 2022 05:37:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667306249; cv=none; d=google.com; s=arc-20160816; b=qhXGdfGra1lqE8+tKU+K/G0ZDZc2IuC0hMO+XVl3d8MrQLVMvtkwZIJV25bc/4OPx6 GKj8a4tl8qtzSpuCyWG9D9v/4GVJkFwA65t5JwzFHcHcsJSevlMoDKojRVT0r9dWnub0 IMZLLRjtyp+TeSjTApMvCNkOSvVh5xwOH50i8+WUIt8ZLJws5m9OWShC75LRccCOzWzs m9YzV4mKJAVwhzYokJIbQSZWKgp6ESr2SH+K+LPenvZUhzketWh/xFJyFst2HkcLf9nX WL+o1/5Cwd1hbW7rI4UvNUVZ+dMpdPXgsxRVKHK0yFv2E9XTwO822ehwafVwq0KSuyFL JvaQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=IvV/hDRNG87XgGLwtJe2i5KT4izzaOEXiuV4DZ8rKKU=; b=ZG3uvbz93gYq7d2fXow7ho1P0V+v0ElavSJPzUCW40c/+Exd8nQhCtACaaM5M122rh vv/izc+0wBxBdJ/aPzVtA1sxNML8rbpoOemDjvVnq3/TpvInEoIWa1rCLOq1TzsAIXAi mWbkOXgGNeyE7A79tTPMt77ICTIFBeTdt44k1q+x1+KYJhrzXPFxeUGftXvbNMDpNddR xlvZKDKj58DFvAFdP404yXVzQqw6KFQ8VMi7EB2R4n8Cmx3/S9kCEXrmh/nSN6zGovOJ FFx39b/SmGc8CplUox3f9WCjFlaB903PX9NL2JYBuxV7iiIcCmhy2eSkbhq6NjG407uB XOuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=TkHrHAcp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a13-20020a50e70d000000b00461d02225a3si10521034edn.448.2022.11.01.05.37.05; Tue, 01 Nov 2022 05:37:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=TkHrHAcp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230363AbiKAMc5 (ORCPT + 99 others); Tue, 1 Nov 2022 08:32:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229533AbiKAMct (ORCPT ); Tue, 1 Nov 2022 08:32:49 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A606E18B12; Tue, 1 Nov 2022 05:32:38 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id k8so19936712wrh.1; Tue, 01 Nov 2022 05:32:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=IvV/hDRNG87XgGLwtJe2i5KT4izzaOEXiuV4DZ8rKKU=; b=TkHrHAcpF50Vgp/IC/j0Oqp0hXP/7THF03asCvqoTkHgHGPUo441bISpk7fcKnnGUd zYkLrzmSFDjwuwEOUClSxeFpNzaOrzF7FNL6PFQdDKM+I+vTvFw8A4mLON0xrJtKfYmM Jw6mAst3Fb/N7gjYhb4jLx53Esg247MgnGaiAN2iFM15ZgNojVuMl7wHE4QAFTpZihTn bVygCZ5MsLwlrm2q0Fs0kbKXpV5E0s1xeCT2L3c1v+b3gSJOQFLex1X/X2OK1yjBSeTb qlTvq4T9TCdnrnoZdXKiCkOC5tSsnQ3abUIR53w4lLRKcoFbmCWU5gj6Ekdqh4F+7dDy s4ZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=IvV/hDRNG87XgGLwtJe2i5KT4izzaOEXiuV4DZ8rKKU=; b=2JB+HUQF6uTuYrWDUvE1rsumTksixLa78EAj1CMS7HM4eMgh6FhzzfGdy8+A0oXS+Q K1pEKebKOiCSYncgtN2f2inS7buNIlC/j6YouzUX3FhEH2ARXAuRznd1ImoO5ms2FSAX zS7ORbzY18dPJXBttDirqFKZ4/npoQ6Cgm84lxXc9rUj6o6VYdZzJ66V04OMT0IYSz2y ThxHmPF+0PFwXHDwBiEok+QnOcF92Htk4VYDZIbXO7K0Lrpg/4/VA/78eFT6begeVoXp tTBF7CYdxiJ1e4WNTYzMC1lbnWNDRibetdcGmW7WSVhhmfFNce8SSuQf7rvK1rRaG0Ck 83Iw== X-Gm-Message-State: ACrzQf2Kcfmylry9T/Cwg9CXZOyWb4hPJ8vOod+TGdJQ5uK3/HLG5xUB NxE4iAa17KZWibeVSkdYW9U= X-Received: by 2002:adf:dd12:0:b0:236:6ef7:dacf with SMTP id a18-20020adfdd12000000b002366ef7dacfmr11264047wrm.204.1667305957152; Tue, 01 Nov 2022 05:32:37 -0700 (PDT) Received: from localhost (cpc154979-craw9-2-0-cust193.16-3.cable.virginm.net. [80.193.200.194]) by smtp.gmail.com with ESMTPSA id d2-20020a5d4f82000000b0022b315b4649sm9894518wru.26.2022.11.01.05.32.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Nov 2022 05:32:36 -0700 (PDT) From: Colin Ian King To: "James E . J . Bottomley" , "Martin K . Petersen" , linux-scsi@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] scsi: csiostor: Remove unused variable n Date: Tue, 1 Nov 2022 12:32:35 +0000 Message-Id: <20221101123235.52152-1-colin.i.king@gmail.com> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748297317264726351?= X-GMAIL-MSGID: =?utf-8?q?1748297317264726351?= Variable n is just being incremented and it's never used anywhere else. The variable and the increment are redundant so remove it. Signed-off-by: Colin Ian King --- drivers/scsi/csiostor/csio_wr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/scsi/csiostor/csio_wr.c b/drivers/scsi/csiostor/csio_wr.c index fe0355c964bc..a516df019c22 100644 --- a/drivers/scsi/csiostor/csio_wr.c +++ b/drivers/scsi/csiostor/csio_wr.c @@ -1051,7 +1051,6 @@ csio_wr_process_fl(struct csio_hw *hw, struct csio_q *q, struct csio_fl_dma_buf flb; struct csio_dma_buf *buf, *fbuf; uint32_t bufsz, len, lastlen = 0; - int n; struct csio_q *flq = hw->wrm.q_arr[q->un.iq.flq_idx]; CSIO_DB_ASSERT(flq != NULL); @@ -1071,7 +1070,7 @@ csio_wr_process_fl(struct csio_hw *hw, struct csio_q *q, flb.totlen = len; /* Consume all freelist buffers used for len bytes */ - for (n = 0, fbuf = flb.flbufs; ; n++, fbuf++) { + for (fbuf = flb.flbufs; ; fbuf++) { buf = &flq->un.fl.bufs[flq->cidx]; bufsz = csio_wr_fl_bufsz(sge, buf);