block: fix bogus compiler warnings in blk-merge.c
authorJens Axboe <axboe@fb.com>
Wed, 2 Sep 2015 22:46:02 +0000 (16:46 -0600)
committerJens Axboe <axboe@fb.com>
Wed, 2 Sep 2015 22:46:02 +0000 (16:46 -0600)
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: Jens Axboe <axboe@fb.com>
block/blk-merge.c

Simple merge