Skip to content
Commit 5014c311 authored by Jens Axboe's avatar Jens Axboe
Browse files

block: fix bogus compiler warnings in blk-merge.c



The compiler can't figure out that bvprv is initialized whenever 'prev'
is set to 1 as well. Use a pointer to bvprv instead, setting it to NULL
initially, and get rid of the 'prev' tracking. This dumbs it down
enough that gcc is happy.

Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent d975f309
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment