Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp13026593rwl; Wed, 4 Jan 2023 02:25:38 -0800 (PST) X-Google-Smtp-Source: AMrXdXtkMgsRmMyDqKM/4US2J8igvZLphYxFMDWisb1Irvz/uMwQ/eFDgHvRmD3Dq7/dUTwCItU8 X-Received: by 2002:a17:90a:244:b0:219:b936:6bcf with SMTP id t4-20020a17090a024400b00219b9366bcfmr52838029pje.48.1672827937759; Wed, 04 Jan 2023 02:25:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672827937; cv=none; d=google.com; s=arc-20160816; b=XZ0Hb0cNSm145zzITMnOlWKokBeBV2615rFqYnwLe4fZsroWXOuYY9S5oSjQfSjXH9 ZT05+7/UaEwx178NcZ2DgW9x9EAOPvhaIGZ2FKZiEWStdUJYORrdJTonZGdKI8UUFuwm IKhxAaIycd+DYpI4XpdHArroVsWuCcty4B/c01Y9wKrdQ2rfgxhY8Gemxhcb8xu3MuS4 +6/buTsIb4x9x+BtIso6qlA5/e5tffpusn9648dmItqq+bsVzfkqdXGDUo5oELxFirzF jUQgOYsdqaPRwvOaNsEwUfzEFjfM8ffOoIh/zAxZ2Essr+zQg+uG0LxWd1979gZcF+7/ uLKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ObnUHKxvEczvfH3lRNZHwf5XmrUPu47QR7kYMSwnUnk=; b=jqU3qc9+AjIy0enQ2pIWfIsrj5bur5vH79TUyelx6zpMBSGYRvCq4O0tjQGTaKTnOn GtqcBC4K6PN8+4k6/sUaHmcNcHsnvP3ZGaVvL/TM9j7T4PCVVFeD3Awv9ntsxSMMoKJP boNtKqEDqavY3jsqol+NLPshcmVaNstEQ1fmKz5yIGPanOmS74/QST6AaZmfNYptmGVk xmq0acnJQ36dsD1chCN2U8jclRjpvwGF48S5tT98vjIIDOfVrgjrJOoyR5BIZXcXl4tW 48cG+d39qll/PFLc6C6I2n4/DQcvLITVrfov48WxpxOHyLjm4YsAECG/75BkuejDO1Sa nKNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MqE1SrKI; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p21-20020a17090adf9500b002268e9e9b97si5028119pjv.31.2023.01.04.02.25.20; Wed, 04 Jan 2023 02:25:37 -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=@redhat.com header.s=mimecast20190719 header.b=MqE1SrKI; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231128AbjADKYR (ORCPT + 99 others); Wed, 4 Jan 2023 05:24:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230376AbjADKYQ (ORCPT ); Wed, 4 Jan 2023 05:24:16 -0500 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 C012D193FB for ; Wed, 4 Jan 2023 02:23:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1672827812; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ObnUHKxvEczvfH3lRNZHwf5XmrUPu47QR7kYMSwnUnk=; b=MqE1SrKI2DgyST9pcwGN2GSmai7tBl5/JsbqSnMKn5jnZh2RY/NzFMZ/rLeYu1iCzMEcUQ 09W74ZWWEZAbvBB7V1UYIPm1/uo+SmVoP/Gs4trqaR7TlI+3s+Q2SiH1rQjCpjIW9ZMWrO JrliZu4Yir/ZCq7YDdO6CkkAM+NFy9w= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-507-H4DRYmPIPwaURSUz6OYCmg-1; Wed, 04 Jan 2023 05:23:29 -0500 X-MC-Unique: H4DRYmPIPwaURSUz6OYCmg-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 17C5585C069; Wed, 4 Jan 2023 10:23:29 +0000 (UTC) Received: from fedora (ovpn-192-227.brq.redhat.com [10.40.192.227]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 55A1B140EBF5; Wed, 4 Jan 2023 10:23:28 +0000 (UTC) Date: Wed, 4 Jan 2023 11:23:26 +0100 From: Lukas Czerner To: Eric Biggers Cc: linux-ext4@vger.kernel.org, Andreas Dilger Subject: Re: [e2fsprogs PATCH] libext2fs: remove unused variable in ext2fs_xattrs_read_inode() Message-ID: <20230104102326.eoitvoj3bbcp6oqd@fedora> References: <20230104090314.276028-1-ebiggers@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230104090314.276028-1-ebiggers@kernel.org> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,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=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 On Wed, Jan 04, 2023 at 01:03:14AM -0800, Eric Biggers wrote: > From: Eric Biggers > > Address the following compiler warning with gcc -Wall: > > ext_attr.c: In function ‘ext2fs_xattrs_read_inode’: > ext_attr.c:1000:16: warning: unused variable ‘i’ [-Wunused-variable] > 1000 | size_t i; > | ^ You might as well remove the unnecessary newline at the top of the function. But regardless, you can add. Reviewed-by: Lukas Czerner Thanks! -Lukas > > Cc: Andreas Dilger > Signed-off-by: Eric Biggers > --- > lib/ext2fs/ext_attr.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/lib/ext2fs/ext_attr.c b/lib/ext2fs/ext_attr.c > index d36fe68d..6fc4214c 100644 > --- a/lib/ext2fs/ext_attr.c > +++ b/lib/ext2fs/ext_attr.c > @@ -997,7 +997,6 @@ errcode_t ext2fs_xattrs_read_inode(struct ext2_xattr_handle *handle, > unsigned int storage_size; > char *start, *block_buf = NULL; > blk64_t blk; > - size_t i; > errcode_t err = 0; > > EXT2_CHECK_MAGIC(handle, EXT2_ET_MAGIC_EA_HANDLE); > -- > 2.39.0 >