summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2017-11-22 19:18:05 +0100
committerJens Axboe <axboe@kernel.dk>2017-11-22 19:26:05 +0100
commitf341a4d384f7fced2ca0d9472ed88fe94de32726 (patch)
tree10fdc1677f4586521fc2c99c07220880e8323185 /block
parentnull_blk: fix dev->badblocks leak (diff)
downloadlinux-f341a4d384f7fced2ca0d9472ed88fe94de32726.tar.xz
linux-f341a4d384f7fced2ca0d9472ed88fe94de32726.zip
block: remove useless assignment in bio_split
Remove useless assignment to the variable "split" because the variable is unconditionally assigned later. Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
-rw-r--r--block/bio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/bio.c b/block/bio.c
index 228229f3bb76..8bfdea58159b 100644
--- a/block/bio.c
+++ b/block/bio.c
@@ -1819,7 +1819,7 @@ EXPORT_SYMBOL(bio_endio);
struct bio *bio_split(struct bio *bio, int sectors,
gfp_t gfp, struct bio_set *bs)
{
- struct bio *split = NULL;
+ struct bio *split;
BUG_ON(sectors <= 0);
BUG_ON(sectors >= bio_sectors(bio));