diff mbox

block: remove useless assignment in bio_split

Message ID alpine.LRH.2.02.1711221312020.21196@file01.intranet.prod.int.rdu2.redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Mikulas Patocka Nov. 22, 2017, 6:18 p.m. UTC
Remove useless assignment to the variable "split" because the variable is
unconditionally assigned later.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>

---
 block/bio.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jens Axboe Nov. 22, 2017, 6:26 p.m. UTC | #1
On 11/22/2017 11:18 AM, Mikulas Patocka wrote:
> Remove useless assignment to the variable "split" because the variable is
> unconditionally assigned later.

Thanks, applied.
diff mbox

Patch

Index: linux-2.6/block/bio.c
===================================================================
--- linux-2.6.orig/block/bio.c
+++ linux-2.6/block/bio.c
@@ -1873,7 +1873,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));