From patchwork Wed Feb 22 13:12:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 1746214 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org (client-ip=150.107.74.76; helo=gandalf.ozlabs.org; envelope-from=srs0=tblt=6s=vger.kernel.org=linux-ext4-owner@ozlabs.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=sMofeJd9; dkim-atps=neutral Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PMGm53h18z240n for ; Thu, 23 Feb 2023 00:12:37 +1100 (AEDT) Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4PMGm53HpDz4x8S for ; Thu, 23 Feb 2023 00:12:37 +1100 (AEDT) Received: by gandalf.ozlabs.org (Postfix) id 4PMGm53F3wz4x8Y; Thu, 23 Feb 2023 00:12:37 +1100 (AEDT) Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: gandalf.ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: gandalf.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=linux-ext4-owner@vger.kernel.org; receiver=) Authentication-Results: gandalf.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=sMofeJd9; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4PMGm53956z4x8S for ; Thu, 23 Feb 2023 00:12:37 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231781AbjBVNMg (ORCPT ); Wed, 22 Feb 2023 08:12:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231841AbjBVNM2 (ORCPT ); Wed, 22 Feb 2023 08:12:28 -0500 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F324C38E8B for ; Wed, 22 Feb 2023 05:12:24 -0800 (PST) Received: by mail-lf1-x129.google.com with SMTP id x24so10069832lfr.1 for ; Wed, 22 Feb 2023 05:12:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0BsSDzTf9SbFwUJeyYQyh3jBbWhIKnNTZMpy1sOIMAw=; b=sMofeJd9iLw2kOEDQpMnMPpzHOysXOgdR3wH4VnBjWBwy+EK8cm8O0J7jxhjyn7Dt7 77CbVAGYMKonjt7Ex4Tfa19sv8Z2W/OL2Cq7kLub6LZlVWPWFnv19aGhCLMsltXN8tEp /vyczCYN6k0wDiA2SvO9B5tb+A0Zk8RCzXbGykG8oBHLFbKMN2qi4kuf8YY0Ohm6HtHE VHQLjNhtgkTqUrmf1i00BV9Yg91tR1T2/QLVcFp54jGGYNSFTx6KFqaGmVBXJt3D7DFm hTQf0Ge+cb2GDYnf8aC0sGLEo5D7oRucspojLAyHzfa7SQIN8WZv2URm2ee/tNQjFxOK GeOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0BsSDzTf9SbFwUJeyYQyh3jBbWhIKnNTZMpy1sOIMAw=; b=c8mtkGwOYj1kfmBhhivly2Az42MZQ1KdW0FUKWpypKi0khoIjy6GVVMnzMbVWOQVKK eCvRf1n67+tZ1qlC+E2vfuTpYPU0PC3xXDoQLkrw844xcttioqJadLrY1ydZKuWKTY+x GIdpCNl3JbRDiN5phnAetLdL6JnSiEbyCjZ1KuPu28YZChTF0VDs2xpbY9T4xe5zxzdm qebgmv/W8Vtcct71IKap1RYTg2JVyWZEzeiQ55ksMWZ4BH09k0xZGQo5jcN28hblapmJ P8aV4Acq/xLnEiU7Gcpcvv0QOYH3ugT16nIascpHxI9k1Q1TY0ZlC+Mkl5K+8Zez4QOn nmqg== X-Gm-Message-State: AO0yUKWcvFufR8fH4k6A/i477f/i6purhliIi6WNtymrE3KnhbJFkuFu KG9FHZQy90+BC8Cn5Qk0x8V5F4mxXCXY/hjQ/mw= X-Google-Smtp-Source: AK7set97icoH4gneBTQnKTzfwX04sUGPV+HUluAuLzHIsOe8ud64Si92qBqUkXq6r4BQiI7iXKy2oA== X-Received: by 2002:ac2:544c:0:b0:4b5:3505:d7f9 with SMTP id d12-20020ac2544c000000b004b53505d7f9mr2621363lfn.35.1677071543295; Wed, 22 Feb 2023 05:12:23 -0800 (PST) Received: from ta1.c.googlers.com.com (138.58.228.35.bc.googleusercontent.com. [35.228.58.138]) by smtp.gmail.com with ESMTPSA id y25-20020a2e7d19000000b0029335c12997sm564383ljc.58.2023.02.22.05.12.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Feb 2023 05:12:22 -0800 (PST) From: Tudor Ambarus To: tytso@mit.edu, darrick.wong@oracle.com, djwong@kernel.org, adilger.kernel@dilger.ca Cc: linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, joneslee@google.com, Tudor Ambarus Subject: [PATCH 3/3] ext4: fsmap: Remove duplicated initialization Date: Wed, 22 Feb 2023 13:12:11 +0000 Message-Id: <20230222131211.3898066-4-tudor.ambarus@linaro.org> X-Mailer: git-send-email 2.39.2.637.g21b0678d19-goog In-Reply-To: <20230222131211.3898066-1-tudor.ambarus@linaro.org> References: <20230222131211.3898066-1-tudor.ambarus@linaro.org> 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,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-ext4@vger.kernel.org All members of struct ext4_fsmap_head were already initialized with zero in the caller, ext4_ioc_getfsmap(), remove duplicated initialization. Signed-off-by: Tudor Ambarus --- fs/ext4/fsmap.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/ext4/fsmap.c b/fs/ext4/fsmap.c index a27d9f0967b7..348eaffaa4d8 100644 --- a/fs/ext4/fsmap.c +++ b/fs/ext4/fsmap.c @@ -668,8 +668,6 @@ int ext4_getfsmap(struct super_block *sb, struct ext4_fsmap_head *head, int i; int error = 0; - head->fmh_entries = 0; - /* Set up our device handlers. */ memset(handlers, 0, sizeof(handlers)); handlers[0].gfd_dev = new_encode_dev(sb->s_bdev->bd_dev);