Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1812071lqz; Mon, 1 Apr 2024 19:48:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUq5IA4F08SIm05hv4ow8lnFqWSQA+IaRWPggueecMiwRGkNvMxY6R8p36mne2pxe6e7K5a9gcaLthm/60TtyUeRirZJUuS8CMOtkYabg== X-Google-Smtp-Source: AGHT+IFbEr/yBhOVkLt30ye85i97fAGQlfSY5dFvff8GPGJQd03MegNDl4ur77diFAsuRJSngwNZ X-Received: by 2002:a05:6a20:2454:b0:1a7:1cd:7eee with SMTP id t20-20020a056a20245400b001a701cd7eeemr7657737pzc.49.1712026099711; Mon, 01 Apr 2024 19:48:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712026099; cv=pass; d=google.com; s=arc-20160816; b=ntARhwnQicaynzvNTXYFll86XLx3hMP9kmZ44VvSkxDH35L2ufr+XY9CochF6M9tS8 AWrMwu+D34cgr6ZS7D1VuCg15WdNFTAIArwl7Rb+f88B+saavBOTRz1Rab7lyAWQc9XN FtLvRq1qs+Hv6F4eQ5Lr5tefcCeJlSr9N6NOKF48y6HLFVp4KuPqRxMEa/wn/AIlsobW xBOBSDmK207RD4mxJUI7VHB6O2I9qOBnNKoKtxcxoaRtZAYNuEAKE5fSbQN5iImNb5KI lWDW8dMVWselxaZixG6qgmB0/IfC4SbLotg0S7OxXKG5BTZ4vNbm2ictWjbJyVunPavT 7qcw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=RYfHr6LSg4rgCYbZl7QobJdR0TtrwB9AcdJRrzrY3CM=; fh=ICnGcGdC7Ak1/H+DrSY3RajhWH4HNxoziYjAhHP+d6I=; b=jayLj2OS2L+EWNPRe8SDMLyAylFEb4/yhmjRL1DuWwsb/ZIB6GA70PrFBTSi7rJWvp TBP3QPAdPBAH9nsO0auVUMJk66yiKUsONBUFo5N4LZWBUjP3NULv5qNIw5DMCVC6bSeF KzaVaiBbeHxb5ldEBxF81yAfXsRWTgGl6pXEkDV74hjaJAQxal3/QabwRnbSUsdwiSQI BI41wjcJ5rQjqQ4poBu6Cyq3SLBczZ91VSuWTXIGWUQx4bMzU8ui9zC2xJKjAefvk9b7 k7I/RWliXTLCeKSya7yxVrOJm/Po8atQ4kPmIlGxYbEOtlSL53Bt0vYo3uecHDIpRJBE 4+zA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=nfschina.com); spf=pass (google.com: domain of linux-ext4+bounces-1815-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1815-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id c15-20020a63d50f000000b005cfbea76cf8si10270205pgg.42.2024.04.01.19.48.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 19:48:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4+bounces-1815-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=nfschina.com); spf=pass (google.com: domain of linux-ext4+bounces-1815-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1815-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 6690A286991 for ; Tue, 2 Apr 2024 02:48:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 51790134BF; Tue, 2 Apr 2024 02:48:16 +0000 (UTC) X-Original-To: linux-ext4@vger.kernel.org Received: from mail.nfschina.com (unknown [42.101.60.195]) by smtp.subspace.kernel.org (Postfix) with SMTP id B67CE111A3; Tue, 2 Apr 2024 02:48:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=42.101.60.195 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712026096; cv=none; b=QKZzXcGdhG29Dttj4R5wu2WkV1yEoj57DYqcEWrkM4fvD/rNa9qKxxAumk/yqdxwXgdVGbaWaetXWnXK841ki9b+nx/jYK1HBfc4L2pkrk9yuDU3o0D1mVGwqywDFAGLHO9nk2Halq1zvkNpGGyW6eyYaEUcQ7vFh1ePt0DPn6k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712026096; c=relaxed/simple; bh=BDkfVkHHxWVJzVoMUvSky86KdCjI582r8cJyMa1bl8U=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=M7+D71ElMK31HT4ArCK5BRA4zDKZob33EZgNhjG1ra2yh9zoyTe+J21TD4iLQXLDGgTLOiPmLgXsTEItYsSCRxVrzYZ+ok3v4ntJTASSxqaZ/K91vELLalG6dd3m2iL4IEtDZ0056qAkYCtQ7gASrxYAHPLNVSOcA/AlxG5zHFc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nfschina.com; spf=pass smtp.mailfrom=nfschina.com; arc=none smtp.client-ip=42.101.60.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nfschina.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nfschina.com Received: from localhost.localdomain (unknown [219.141.250.2]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 7E6EC605E181C; Tue, 2 Apr 2024 10:48:10 +0800 (CST) X-MD-Sfrom: zeming@nfschina.com X-MD-SrcIP: 219.141.250.2 From: Li zeming To: tytso@mit.edu, adilger.kernel@dilger.ca Cc: linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] =?UTF-8?q?ext4:=20extents:=20Remove=20unnecessary=20?= =?UTF-8?q?=E2=80=98NULL=E2=80=99=20values=20from=20ablocks?= Date: Tue, 2 Apr 2024 10:48:04 +0800 Message-Id: <20240402024804.29411-1-zeming@nfschina.com> X-Mailer: git-send-email 2.18.2 Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ablocks is assigned first, so it does not need to initialize the assignment. Signed-off-by: Li zeming --- fs/ext4/extents.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index 4ab96f01a6f31..caace8c3fd3c1 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c @@ -1061,7 +1061,7 @@ static int ext4_ext_split(handle_t *handle, struct inode *inode, int i = at, k, m, a; ext4_fsblk_t newblock, oldblock; __le32 border; - ext4_fsblk_t *ablocks = NULL; /* array of allocated blocks */ + ext4_fsblk_t *ablocks; /* array of allocated blocks */ gfp_t gfp_flags = GFP_NOFS; int err = 0; size_t ext_size = 0; -- 2.18.2