summaryrefslogtreecommitdiff
path: root/mm/filemap.c
diff options
context:
space:
mode:
authorLi zeming <zeming@nfschina.com>2023-12-05 10:29:54 +0800
committerAndrew Morton <akpm@linux-foundation.org>2023-12-12 10:57:07 -0800
commita1748f85bec936d87cac8a9785fb2a38147fc998 (patch)
tree874eeb3ce05de5e6ef063e1dcde223d32fefa8b8 /mm/filemap.c
parent683ec99f12f4c386c23bed7f6a8ef44db5a4999a (diff)
downloadlwn-a1748f85bec936d87cac8a9785fb2a38147fc998.tar.gz
lwn-a1748f85bec936d87cac8a9785fb2a38147fc998.zip
mm: filemap: remove unnecessary iitialization of ret
The ret variable can be defined without assigning a value, as it is assigned before use. Link: https://lkml.kernel.org/r/20231205022954.101045-1-zeming@nfschina.com Signed-off-by: Li zeming <zeming@nfschina.com> Cc: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/filemap.c')
-rw-r--r--mm/filemap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/filemap.c b/mm/filemap.c
index 71f00539ac00..c0d7e1d7eea2 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -1623,7 +1623,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;