mm: truncate: remove redundant initialization of new_order
Subsystems (4)
PATCH 1/1 mm: truncate: remove redundant initialization of new_order
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 <[email protected]>
--- mm/truncate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/truncate.c +1 -1
@@ -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;
Signature · 1 line
2.30.2