Skip to contentSkip to conversation

mm: filemap: Remove unnecessary ‘0’ values from ret

PATCH Applied Li zeming 1 participant 1 message Dec 5, 2023

Subsystems (3)
lore
Share & tools
lore

Li zeming

author
#0 lore raw

PATCH 1/1 mm: filemap: Remove unnecessary ‘0’ values from ret

The ret variable can be defined without assigning a value, as it is assigned before use.

---
 mm/filemap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/filemap.c +1 -1
index 582f5317ff717..114b7cb41e7e7 100644
@@ -1641,7 +1641,7 @@ EXPORT_SYMBOL_GPL(__folio_lock_killable);
 static int __folio_lock_async(struct folio *folio, struct wait_page_queue *wait)
 {
 	struct wait_queue_head *q = folio_waitqueue(folio);
-	int ret = 0;
+	int ret;
 
 	wait->folio = folio;
 	wait->bit_nr = PG_locked;
Signature · 1 line
2.18.2