]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
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)
commit5014c311baa2b21384321fa4a9f617a92e3e56f0
treec9f2fab874651482e91185c8544ab9bd604e871a
parentd975f309a8b250e67b66eabeb56be6989c783629
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: Jens Axboe <axboe@fb.com>
block/blk-merge.c