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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 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




[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux