Skip to content

Commit f6454b0

Browse files
JuliaLawallaxboe
authored andcommitted
block: fix returnvar.cocci warnings
Remove unneeded variable used to store return value. Generated by: scripts/coccinelle/misc/returnvar.cocci Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Jens Axboe <axboe@fb.com>
1 parent 5f1b670 commit f6454b0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fs/buffer.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2996,7 +2996,6 @@ void guard_bio_eod(int rw, struct bio *bio)
29962996
int _submit_bh(int rw, struct buffer_head *bh, unsigned long bio_flags)
29972997
{
29982998
struct bio *bio;
2999-
int ret = 0;
30002999

30013000
BUG_ON(!buffer_locked(bh));
30023001
BUG_ON(!buffer_mapped(bh));
@@ -3038,7 +3037,7 @@ int _submit_bh(int rw, struct buffer_head *bh, unsigned long bio_flags)
30383037
rw |= REQ_PRIO;
30393038

30403039
submit_bio(rw, bio);
3041-
return ret;
3040+
return 0;
30423041
}
30433042
EXPORT_SYMBOL_GPL(_submit_bh);
30443043

0 commit comments

Comments
 (0)