From patchwork Mon Oct 24 14:11:01 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: 9560 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp521176wru; Mon, 24 Oct 2022 08:45:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6QUzjSoGcSf9E7ckWvkLITY7vzQGEZ281kclkQWuKkYzAPUWdtDs00nhrb8zpI78t0aWyO X-Received: by 2002:a17:907:2711:b0:7a6:bbea:683e with SMTP id w17-20020a170907271100b007a6bbea683emr6226224ejk.344.1666626318310; Mon, 24 Oct 2022 08:45:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666626318; cv=none; d=google.com; s=arc-20160816; b=vLShQCWjELRmE1NdSi9ydIIbDohw2OJ1hOjxwIXnTwKuNojUAJZlO0apVjM84He3Em lmRGgbp3j2ayKm10u8/2jjdJk2gPez+TGaMmr76Wjx7nJ6SAz8wn5fl3xK7RLmau+EQN SHXVJk3bNkxPR62VghatbYOc4GP8fybjr9nbf0EjCJoVnh7H04wC23+HrNHAvblIMnC2 x3FM5gfPv3dfea3wAwtgKLfFceqhF9MMcg4tTkGpFYD7xYvjuv6GPwqYjoy2msVPnU5C mqC0JLZpMu5c9Auof04G+uwEF6Pm4RKbWKamNaOQ5GIFVL9qCO6adL1t9LjQomps64d0 D0lw== 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=PhUxSjTWxhyhzoVN8CjeIVwED4ZtcdgKG/cY+s+iZJY=; b=MHr7d9cn3Co31jeo+oz/36kzMYUId1FFE9AxCyBHtKyermcnwkZiq7xQemSffX0WbR +EZh3skesh6NIsNgyW6iiPpYxyqPTHxIY4VM/IKF8pDvPS6344rywRkWd8Dorbp0zBtw PSepdIokVoftvcUoTlGhAg89xTeS6Fcxb7j39GRV9j5O8BKaEOKG4HdxrVJ2gp8D9ZVd b55c/4bYcpB9c5RT7zrfGa1Y8EI7/7gMV+Fihh5MkkqFIWYm9aHx5USi+9Vnj5R7MS7J Ed/TKgAbA+aJ+fzdHoVvwLGI9e7BRUJw0gG+eDA22iw9c2nZ4XOZu1v8w2ESUOm7mEPs arug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=mt6091jj; 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 g4-20020a056402428400b004571c47b13csi82411edc.418.2022.10.24.08.44.54; Mon, 24 Oct 2022 08:45:18 -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=mt6091jj; 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 S230495AbiJXPjR (ORCPT + 99 others); Mon, 24 Oct 2022 11:39:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231314AbiJXPis (ORCPT ); Mon, 24 Oct 2022 11:38:48 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 131136422; Mon, 24 Oct 2022 07:27:49 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id z14so3013246wrn.7; Mon, 24 Oct 2022 07:27:49 -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=PhUxSjTWxhyhzoVN8CjeIVwED4ZtcdgKG/cY+s+iZJY=; b=mt6091jjQZfb8b+bV3hD5cmriQUm0Fvq6TbPxfxdXdDN8lUmwjUxMjxpjyMqoFJSuj 01oDJyceoEPr1mT3oiB2iD+ThpDN2CrFakO1Dd9MYcCg0Ue7VaV0WiF+dFJJyNCNan1t v1EYN1CyS0Hbv6SR+622XhyBaXOLao5CX36W4t6F0NPAJ5FNtj/aW6YoX+sfr67yLhWq BithXtPwSslxzzdZXdP7PmRThuR9bhhfp2F+mlPtnFhBeTJiYv8ouUbqUmxFp+C/N2RB mSFHSFHsASQxwkumtlJfWFF23lLc8v5cvHufju3nBavN9AswLGvxBxF3eVswzmMW9Oxu eu2g== 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=PhUxSjTWxhyhzoVN8CjeIVwED4ZtcdgKG/cY+s+iZJY=; b=p9nhVQzdOEtLiP6aZNoIBsvYgqnNm3moQP5tmqT4MwtLk6adUVZG+ihkswOjah9aKs DwibsOsW9FA+OfiSNnq1jRFFDjMbzdNQcTTyvFOoiaSt2Idd12hr4UNmVoPHmVnbXeyb LEnZTdI44HJFbMrpmHInKO3acaiEXpZDbT8BHNfemsT4c2tTILEfo9HX7/hVKQ5Ojv+1 I3WMXiJ7QNvbbHw2himaloaJ0SPX3h0slqAgqSFS3VAHYX8KVf60RfNYjLwBxtsXtX3i J/D1AaasqvhuUGQACKodQZ0N0UCYHExPtY2T9RXWyASegGBo4CCGTkJqKtId7gy8wUsc Prlw== X-Gm-Message-State: ACrzQf09D8vOv8UODnA6yEgPz8LfjXLqzEU5U0ZbNCzSLNkWqUjZW5Y/ WZVp2I7EzFdt9p29hZY1uwXS1RI+deWdH3P/ X-Received: by 2002:a5d:6d89:0:b0:236:6e52:4fa with SMTP id l9-20020a5d6d89000000b002366e5204famr4820402wrs.395.1666620662901; Mon, 24 Oct 2022 07:11:02 -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 f8-20020a0560001b0800b0023677fd2657sm1551414wrz.52.2022.10.24.07.11.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Oct 2022 07:11:02 -0700 (PDT) From: Colin Ian King To: YOKOTA Hiroshi , "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: nsp_cs: remove variable i Date: Mon, 24 Oct 2022 15:11:01 +0100 Message-Id: <20221024141101.2161167-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?1747584358200634485?= X-GMAIL-MSGID: =?utf-8?q?1747584358200634485?= Variable i 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/pcmcia/nsp_cs.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/scsi/pcmcia/nsp_cs.c b/drivers/scsi/pcmcia/nsp_cs.c index 48acab03a8a0..a5a1406a2bde 100644 --- a/drivers/scsi/pcmcia/nsp_cs.c +++ b/drivers/scsi/pcmcia/nsp_cs.c @@ -450,8 +450,6 @@ static int nsp_analyze_sdtr(struct scsi_cmnd *SCpnt) sync_data *sync = &(data->Sync[target]); struct nsp_sync_table *sync_table; unsigned int period, offset; - int i; - nsp_dbg(NSP_DEBUG_SYNC, "in"); @@ -466,7 +464,7 @@ static int nsp_analyze_sdtr(struct scsi_cmnd *SCpnt) sync_table = nsp_sync_table_40M; } - for ( i = 0; sync_table->max_period != 0; i++, sync_table++) { + for (; sync_table->max_period != 0; sync_table++) { if ( period >= sync_table->min_period && period <= sync_table->max_period ) { break;