linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] block: remove useless assignment in bio_split
@ 2017-11-22 18:18 Mikulas Patocka
  2017-11-22 18:26 ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: Mikulas Patocka @ 2017-11-22 18:18 UTC (permalink / raw)
  To: Jens Axboe, Kent Overstreet; +Cc: linux-block

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(-)

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));

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] block: remove useless assignment in bio_split
  2017-11-22 18:18 [PATCH] block: remove useless assignment in bio_split Mikulas Patocka
@ 2017-11-22 18:26 ` Jens Axboe
  0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2017-11-22 18:26 UTC (permalink / raw)
  To: Mikulas Patocka, Kent Overstreet; +Cc: linux-block

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.

-- 
Jens Axboe

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-11-22 18:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-22 18:18 [PATCH] block: remove useless assignment in bio_split Mikulas Patocka
2017-11-22 18:26 ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).