public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ext4: extents: Remove unnecessary ‘NULL’ values from ablocks
@ 2024-04-02  2:48 Li zeming
  2024-04-02  3:55 ` Theodore Ts'o
  2024-04-08 20:51 ` Andreas Dilger
  0 siblings, 2 replies; 3+ messages in thread
From: Li zeming @ 2024-04-02  2:48 UTC (permalink / raw)
  To: tytso, adilger.kernel; +Cc: linux-ext4, linux-kernel, Li zeming

ablocks is assigned first, so it does not need to initialize the
assignment.

Signed-off-by: Li zeming <zeming@nfschina.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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-04-08 20:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-02  2:48 [PATCH] ext4: extents: Remove unnecessary ‘NULL’ values from ablocks Li zeming
2024-04-02  3:55 ` Theodore Ts'o
2024-04-08 20:51 ` Andreas Dilger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox