diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2017-11-22 13:18:05 -0500 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-11-22 11:26:05 -0700 |
commit | f341a4d384f7fced2ca0d9472ed88fe94de32726 (patch) | |
tree | 10fdc1677f4586521fc2c99c07220880e8323185 /block | |
parent | 1addb798e93893d33c8dfab743cd44f09fd7719a (diff) | |
download | linux-f341a4d384f7fced2ca0d9472ed88fe94de32726.tar.bz2 |
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.c | 2 |
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)); |