projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
683ec99
)
mm: filemap: remove unnecessary iitialization of ret
author
Li zeming
<zeming@nfschina.com>
Tue, 5 Dec 2023 02:29:54 +0000
(10:29 +0800)
committer
Andrew Morton
<akpm@linux-foundation.org>
Tue, 12 Dec 2023 18:57:07 +0000
(10:57 -0800)
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>
mm/filemap.c
patch
|
blob
|
history
diff --git
a/mm/filemap.c
b/mm/filemap.c
index 71f00539ac00ce99b99bc6a0844e0a5cc8afc8c6..c0d7e1d7eea29ecf4712014a49a25839ff97a62a 100644
(file)
--- 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;