Message ID | alpine.LRH.2.02.1711221312020.21196@file01.intranet.prod.int.rdu2.redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
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.
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));
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(-)