linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm: filemap: Remove unnecessary ‘0’ values from ret
@ 2023-12-05  2:29 Li zeming
  0 siblings, 0 replies; only message in thread
From: Li zeming @ 2023-12-05  2:29 UTC (permalink / raw)
  To: willy, akpm; +Cc: linux-fsdevel, linux-mm, linux-kernel, Li zeming

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

Signed-off-by: Li zeming <zeming@nfschina.com>
---
 mm/filemap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/filemap.c b/mm/filemap.c
index 582f5317ff717..114b7cb41e7e7 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -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;
-- 
2.18.2


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-12-05  2:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-05  2:29 [PATCH] mm: filemap: Remove unnecessary ‘0’ values from ret Li zeming

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).