Skip to content

Commit d11a249

Browse files
Davidlohr Buesobrauner
authored andcommitted
fs/buffer: remove superfluous statements
Get rid of those unnecessary return statements. Signed-off-by: Davidlohr Bueso <dave@stgolabs.net> Link: https://lore.kernel.org/20250515173925.147823-4-dave@stgolabs.net Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Christian Brauner <brauner@kernel.org>
1 parent 98a6ca1 commit d11a249

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

fs/buffer.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,6 @@ static void end_buffer_async_read(struct buffer_head *bh, int uptodate)
297297

298298
still_busy:
299299
spin_unlock_irqrestore(&first->b_uptodate_lock, flags);
300-
return;
301300
}
302301

303302
struct postprocess_bh_ctx {
@@ -422,7 +421,6 @@ static void end_buffer_async_write(struct buffer_head *bh, int uptodate)
422421

423422
still_busy:
424423
spin_unlock_irqrestore(&first->b_uptodate_lock, flags);
425-
return;
426424
}
427425

428426
/*
@@ -1682,7 +1680,6 @@ void block_invalidate_folio(struct folio *folio, size_t offset, size_t length)
16821680
filemap_release_folio(folio, 0);
16831681
out:
16841682
folio_clear_mappedtodisk(folio);
1685-
return;
16861683
}
16871684
EXPORT_SYMBOL(block_invalidate_folio);
16881685

0 commit comments

Comments
 (0)