* [PATCH][next] mm: truncate: remove redundant initialization of new_order
@ 2023-04-06 9:58 Colin Ian King
0 siblings, 0 replies; only message in thread
From: Colin Ian King @ 2023-04-06 9:58 UTC (permalink / raw)
To: Matthew Wilcox, Andrew Morton, linux-fsdevel, linux-mm
Cc: kernel-janitors, linux-kernel
Variable new_order is being initialized with a value that is not read,
the variable is being re-assigned later. Remove the initialization.
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
---
mm/truncate.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/truncate.c b/mm/truncate.c
index 817efd5e94b4..d8dd7ee1654d 100644
--- a/mm/truncate.c
+++ b/mm/truncate.c
@@ -213,7 +213,7 @@ bool truncate_inode_partial_folio(struct folio *folio, loff_t start, loff_t end)
{
loff_t pos = folio_pos(folio);
unsigned int offset, length, remaining;
- unsigned int new_order = folio_order(folio);
+ unsigned int new_order;
if (pos < start)
offset = start - pos;
--
2.30.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-04-06 10:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-06 9:58 [PATCH][next] mm: truncate: remove redundant initialization of new_order Colin Ian King
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).