diff mbox series

[next] mm: truncate: remove redundant initialization of new_order

Message ID 20230406095817.703426-1-colin.i.king@gmail.com (mailing list archive)
State Mainlined, archived
Headers show
Series [next] mm: truncate: remove redundant initialization of new_order | expand

Commit Message

Colin Ian King April 6, 2023, 9:58 a.m. UTC
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 mbox series

Patch

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;