mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
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>
This commit is contained in:
parent
683ec99f12
commit
a1748f85be
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user