aboutsummaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2017-11-22 13:18:05 -0500
committerJens Axboe <axboe@kernel.dk>2017-11-22 11:26:05 -0700
commitf341a4d384f7fced2ca0d9472ed88fe94de32726 (patch)
tree10fdc1677f4586521fc2c99c07220880e8323185 /block
parent1addb798e93893d33c8dfab743cd44f09fd7719a (diff)
downloadlinux-stericsson-f341a4d384f7fced2ca0d9472ed88fe94de32726.tar.gz
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));