Skip to content

Commit

Permalink
block: fix returnvar.cocci warnings
Browse files Browse the repository at this point in the history
Remove unneeded variable used to store return value.

Generated by: scripts/coccinelle/misc/returnvar.cocci

Signed-off-by: Fengguang Wu <[email protected]>
Signed-off-by: Julia Lawall <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
JuliaLawall authored and axboe committed May 26, 2015
1 parent 5f1b670 commit f6454b0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

BUG_ON(!buffer_locked(bh));
BUG_ON(!buffer_mapped(bh));
Expand Down Expand Up @@ -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;
}
EXPORT_SYMBOL_GPL(_submit_bh);

Expand Down

0 comments on commit f6454b0

Please sign in to comment.