[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240402024804.29411-1-zeming@nfschina.com>
Date: Tue, 2 Apr 2024 10:48:04 +0800
From: Li zeming <zeming@...china.com>
To: tytso@....edu,
adilger.kernel@...ger.ca
Cc: linux-ext4@...r.kernel.org,
linux-kernel@...r.kernel.org,
Li zeming <zeming@...china.com>
Subject: [PATCH] ext4: extents: Remove unnecessary ‘NULL’ values from ablocks
ablocks is assigned first, so it does not need to initialize the
assignment.
Signed-off-by: Li zeming <zeming@...china.com>
---
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
Powered by blists - more mailing lists