Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp972019rwl; Fri, 31 Mar 2023 05:11:53 -0700 (PDT) X-Google-Smtp-Source: AKy350bd0fGyG2G7ryHMfHte8wFjA4Z/3qMV6V+lElCaQ+vX4PyTs1BoKmu8HcB1QG+T6zaDI7A+ X-Received: by 2002:a17:906:297:b0:93e:22e6:e7d3 with SMTP id 23-20020a170906029700b0093e22e6e7d3mr4462917ejf.0.1680264713583; Fri, 31 Mar 2023 05:11:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680264713; cv=none; d=google.com; s=arc-20160816; b=DGWXJaC30nlTwozRgunH8933vbT26MKvi2ii4XTL6b/pP0jy/ElyP0ygdl/lEMGG1H ujca2aesH5gv88jj4nK1P63DN84UIpY+iBoTsjJdAv7chsQcW/UrVnaAB5l75i/Rtaje O/YMp7zYFjGuTfEutPqPFErey0h8ThsOtq3qgX9yAZRO1LtA1w9O+OZGPMgmowKT//Xc DKxrzMmR5A/8yWwUSFr8/gvoD8tq64BEjhwym8q/upsMzn98NXR9YCVCJTiO0JQCGcTF O+hJuO+Eky4tm1wrx7HeqVJghjtmH1uyP49clMM3y5p5VuSM8UksMMA/JJS5JW6JAbAR nbTw== 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=Wx3vtf0mWAsv14OEzo/oiyKAqTl2ZYLXwnoN7IpbtAc=; b=VYkAnEN75TXMN/NOZXXvGHL0Ks/IxXoZk6j4R+s2zyfGytHoyXllv2nqvlI8anWD4t QpFKSteO1YNkEIee4UZSL9Twyh92ESje0dpSS/diBAL7wxW0+7gRbxbUItW+qn1JD6Uz vXomlbb5qcWMZ1haYKp45qFHvs2etUGzyJzEfc392/oqcEzzfcByXSuk7Zt3BGepOy1M d3WBgIUvxAXZxGII/5gyT0Nvg5S4KIyGbP9XOBRd4j17OLk/vaLsyPnpTZ7zHkaUzFHs SEZjdg1RgXNGv5xaR9zfXmIunMRNLWw26mlpeJ5uUrv3AiF4+Sd2aSuCMdHXOanJR63l yIBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RfR2YAuF; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nb1-20020a1709071c8100b00947c19f9f2bsi709747ejc.354.2023.03.31.05.11.19; Fri, 31 Mar 2023 05:11:53 -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=@redhat.com header.s=mimecast20190719 header.b=RfR2YAuF; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231255AbjCaMEZ (ORCPT + 99 others); Fri, 31 Mar 2023 08:04:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231830AbjCaMEX (ORCPT ); Fri, 31 Mar 2023 08:04:23 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 545D41C1F3 for ; Fri, 31 Mar 2023 05:03:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680264217; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Wx3vtf0mWAsv14OEzo/oiyKAqTl2ZYLXwnoN7IpbtAc=; b=RfR2YAuFP1YoHtdOSiJDTXju3vhpp5sviHiFlEo9Ho67QDOj/h673UnmB+oueU9SNsK0l1 Turvk23FNIh+fIdFZT0PzJdIa0ZoudWYNeiGKQEZ4DvVVHz1oUDAXDgLJxXfPNm4vjmHCx I9masYEeMUlTCSEKMuNyaYp3nL+SDNY= Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-141-Q9Vy1_N9M5aDmlOc-T13EA-1; Fri, 31 Mar 2023 08:03:29 -0400 X-MC-Unique: Q9Vy1_N9M5aDmlOc-T13EA-1 Received: by mail-qt1-f198.google.com with SMTP id c14-20020ac87d8e000000b003e38726ec8bso14485835qtd.23 for ; Fri, 31 Mar 2023 05:03:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680264208; 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=Wx3vtf0mWAsv14OEzo/oiyKAqTl2ZYLXwnoN7IpbtAc=; b=UCHfgm3sxRlST5wlxHw34YMARazUSipO93uUevU5xJliTdTa5cZSdYHYwQ0gQhex0w w7efIopQXaNNrKivzZMwZKsNS3eBpxA0wxOq1WsDancQR8ObiwF31XbQBmziQnCcQI6E Dn2NzA36xCbzHfAOVgTUFto/qpEq8zb6ncDC12LkYc3IzW5P4faAUCDohRQXtVwXRBKn AHPEjOrQNYiXUF0LCOL7UlyxjaM6af9dkBOEJS/XlkC1hLViC/Q9WR07w4rH7V2lvGjA 4IOGursCeRxR9uKhv3Xs5FwBDc/HipMIylIN+vQ/9fk7StKISF4t082ILy7myFEqTruA Uyxw== X-Gm-Message-State: AO0yUKUJxhmncKFj5T6OKdtogvcbVxMWtd/OcAbNdQ9IWGkwUPUB/gMx oeJmf2Jui7OMaGc8l6ta2KMgpAJ4MiXlOjUjs/qowuqspOQcqf1JQzz3bNt/W1pZ0NkudCSA24D 80C64R9MKFKYb8nCwxNOLN0uv X-Received: by 2002:a05:622a:b:b0:3d7:960e:5387 with SMTP id x11-20020a05622a000b00b003d7960e5387mr43506118qtw.35.1680264208201; Fri, 31 Mar 2023 05:03:28 -0700 (PDT) X-Received: by 2002:a05:622a:b:b0:3d7:960e:5387 with SMTP id x11-20020a05622a000b00b003d7960e5387mr43506086qtw.35.1680264207923; Fri, 31 Mar 2023 05:03:27 -0700 (PDT) Received: from dell-per740-01.7a2m.lab.eng.bos.redhat.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id x20-20020ac84a14000000b003e635f80e72sm575569qtq.48.2023.03.31.05.03.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Mar 2023 05:03:27 -0700 (PDT) From: Tom Rix To: nathan@kernel.org, ndesaulniers@google.com, axboe@kernel.dk, akpm@linux-foundation.org, bvanassche@acm.org, jack@suse.cz, yi.zhang@huawei.com Cc: reiserfs-devel@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Tom Rix Subject: [PATCH] reiserfs: remove unused iter variable Date: Fri, 31 Mar 2023 08:03:25 -0400 Message-Id: <20230331120325.1855111-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 clang with W=1 reports fs/reiserfs/stree.c:1265:6: error: variable 'iter' set but not used [-Werror,-Wunused-but-set-variable] int iter = 0; ^ This variable is not used so remove it. Signed-off-by: Tom Rix --- fs/reiserfs/stree.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/reiserfs/stree.c b/fs/reiserfs/stree.c index 84c12a1947b2..ce5003986789 100644 --- a/fs/reiserfs/stree.c +++ b/fs/reiserfs/stree.c @@ -1262,7 +1262,6 @@ int reiserfs_delete_item(struct reiserfs_transaction_handle *th, #ifdef CONFIG_REISERFS_CHECK char mode; - int iter = 0; #endif BUG_ON(!th->t_trans_id); @@ -1274,7 +1273,6 @@ int reiserfs_delete_item(struct reiserfs_transaction_handle *th, removed = 0; #ifdef CONFIG_REISERFS_CHECK - iter++; mode = #endif prepare_for_delete_or_cut(th, inode, path, -- 2.27.0