Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp12957710rwl; Wed, 4 Jan 2023 01:08:32 -0800 (PST) X-Google-Smtp-Source: AMrXdXvtpq/4UEC3kryz63Ii+E2eP9SJrwrsuYCwlaCI/aSVU8vNCpshbVBxl6zWwj6mXkrA6bs1 X-Received: by 2002:a17:906:3ad7:b0:7c1:6e53:dd02 with SMTP id z23-20020a1709063ad700b007c16e53dd02mr45851412ejd.64.1672823312707; Wed, 04 Jan 2023 01:08:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672823312; cv=none; d=google.com; s=arc-20160816; b=m21nLTJQepjP6SGUeMFzgqd3Q+fCDEQLEryTzNA34/Z5K17psULGvcpKVtktcJj/cz TRj9eL/kKE16e+SI1Ir8leRXG6a5mH9t83yzEsA7llQFpDR94w6ti+XBF8QqdkbUmV56 +k/+NJ3cqP9ph2hgJgi9JjdpF0pEckSwMW7NsmAKpLmCu6SYEpErnfTFeW9QUJsWLxa6 zXUI53qghTK3pOnTE9Wn1/M87UGdH1vXnOENtjz+iqH0XpS5Xyfrr993Jd4rzJSMvMO2 2Papfsqru4uTIkNuuiUMbrZPbfPip1lKg6JFTcIJQR7/EQHnRkqsz9usMfaOTSVIphXg RpIQ== 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:to:from:dkim-signature; bh=62HW9i8KDVFWbIcEVc8dzjg2PCCj5TvJ2EUO8hAJ4FY=; b=BkeVllgyUZ1ACj7TifDwZ2fasPetxSNY6tlbDsVDKShTIxc/3Velri/GCeJvpbMeJV 5L7Uj3tCZBU2bNu5eS5aqj9rh3Rr9uHFxGkwxODCKBforcGujNfIrYwfClm1RUlwyq0P YmG8K2T8f0GY0Upyh8AKuubxsEbxUVoAeBgTekVfoLscHaXmOOHalnu7XqAWGeB7QeSC 5lSlyeh2qh5aKlS8XwSunY2nkeHGp8B/klXAbEMfAzw4wOf+yptGZbJ8kCi4b9WUz9h1 BvN6xH+j4eL3ggY6Q82PBuyb/uSm+u/X+UtNkOP24NZXuiQrlEkfhljxPvzy9+X6e1AR FKfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ePgWxdUl; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ji19-20020a170907981300b007b7f39942c1si30112984ejc.632.2023.01.04.01.08.09; Wed, 04 Jan 2023 01:08:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-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=@kernel.org header.s=k20201202 header.b=ePgWxdUl; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233583AbjADJEP (ORCPT + 99 others); Wed, 4 Jan 2023 04:04:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234238AbjADJD7 (ORCPT ); Wed, 4 Jan 2023 04:03:59 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A52E218E05 for ; Wed, 4 Jan 2023 01:03:58 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3F2B6615D2 for ; Wed, 4 Jan 2023 09:03:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E370C433D2 for ; Wed, 4 Jan 2023 09:03:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672823037; bh=A6iaykidPgtKyGr8woEMBjxW2GCRYEtro1Dv7S+wD00=; h=From:To:Subject:Date:From; b=ePgWxdUl8OlNUACoZFzw4ZIvbwGCKfUCBNlcGAVYNv01qTc2P0De6rFn9VGlSeOVk Wm2oyOyYZ4ET59Ql+kgdP+GMWM2F/MdaCYE1onYgFMCvlKSkFFYCutW9fRMAETt0WT Pv6xqwOS9AqVVvsUZxqwTvLpkDDUoPndsnIHFeqaU1ZDI3Suv+Ba1Q2/PMRR80GErn WrGJdpaVKBX+zpj/fUi23Uhw7AVhXQK4dVn6ME4mDkotZNubJPGdZS8ZyTHaJVQSLv J2/zcProO2ZB8sCjn3T8KUC62SmIx91cceK3rk8Q6qMBZvKEpXx//Zbf2juw5VYiXA 2w698u+riBQaA== From: Eric Biggers To: linux-ext4@vger.kernel.org Subject: [e2fsprogs PATCH] resize2fs: remove unused variable from adjust_superblock() Date: Wed, 4 Jan 2023 01:03:51 -0800 Message-Id: <20230104090351.276159-1-ebiggers@kernel.org> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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-ext4@vger.kernel.org From: Eric Biggers In adjust_superblock(), the 'group_block' variable is declared and set, but it is never actually used. Remove it. This addresses the following compiler warning with clang -Wall: resize2fs.c:1119:11: warning: variable 'group_block' set but not used [-Wunused-but-set-variable] blk64_t group_block; ^ Signed-off-by: Eric Biggers --- resize/resize2fs.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/resize/resize2fs.c b/resize/resize2fs.c index 243cd777..5eeb7d44 100644 --- a/resize/resize2fs.c +++ b/resize/resize2fs.c @@ -1116,7 +1116,6 @@ static errcode_t adjust_superblock(ext2_resize_t rfs, blk64_t new_size) ext2_filsys fs = rfs->new_fs; int adj = 0; errcode_t retval; - blk64_t group_block; unsigned long i; unsigned long max_group; @@ -1181,8 +1180,6 @@ static errcode_t adjust_superblock(ext2_resize_t rfs, blk64_t new_size) goto errout; memset(rfs->itable_buf, 0, fs->blocksize * fs->inode_blocks_per_group); - group_block = ext2fs_group_first_block2(fs, - rfs->old_fs->group_desc_count); adj = rfs->old_fs->group_desc_count; max_group = fs->group_desc_count - adj; if (rfs->progress) { @@ -1209,7 +1206,6 @@ static errcode_t adjust_superblock(ext2_resize_t rfs, blk64_t new_size) if (retval) goto errout; } - group_block += fs->super->s_blocks_per_group; } io_channel_flush(fs->io); retval = 0; -- 2.39.0