Commit f6454b04 authored by Julia Lawall's avatar Julia Lawall Committed by Jens Axboe
Browse files

block: fix returnvar.cocci warnings

Remove unneeded variable used to store return value.

Generated by: scripts/coccinelle/misc/returnvar.cocci
Signed-off-by: default avatarFengguang Wu <>
Signed-off-by: default avatarJulia Lawall <>
Signed-off-by: default avatarJens Axboe <>
parent 5f1b670d
......@@ -2996,7 +2996,6 @@ void guard_bio_eod(int rw, struct bio *bio)
int _submit_bh(int rw, struct buffer_head *bh, unsigned long bio_flags)
struct bio *bio;
int ret = 0;
......@@ -3038,7 +3037,7 @@ int _submit_bh(int rw, struct buffer_head *bh, unsigned long bio_flags)
rw |= REQ_PRIO;
submit_bio(rw, bio);
return ret;
return 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment