public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fs/bio.c: initialize variable, remove warning
@ 2006-05-01 20:55 Petri T. Koistinen
  2006-05-01 21:05 ` Alexey Dobriyan
  2006-05-02  0:22 ` Al Viro
  0 siblings, 2 replies; 5+ messages in thread
From: Petri T. Koistinen @ 2006-05-01 20:55 UTC (permalink / raw)
  To: Andrew Morton; +Cc: trivial, linux-kernel

From: Petri T. Koistinen <petri.koistinen@iki.fi>

Remove compiler warning by initializing uninitialized variable.

Signed-off-by: Petri T. Koistinen <petri.koistinen@iki.fi>
---
 fs/bio.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/fs/bio.c b/fs/bio.c
index eb8fbc5..c4deed9 100644
--- a/fs/bio.c
+++ b/fs/bio.c
@@ -166,7 +166,7 @@ struct bio *bio_alloc_bioset(gfp_t gfp_m

 		bio_init(bio);
 		if (likely(nr_iovecs)) {
-			unsigned long idx;
+			unsigned long idx = 0;

 			bvl = bvec_alloc_bs(gfp_mask, nr_iovecs, &idx, bs);
 			if (unlikely(!bvl)) {



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

end of thread, other threads:[~2006-05-02  5:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-01 20:55 [PATCH] fs/bio.c: initialize variable, remove warning Petri T. Koistinen
2006-05-01 21:05 ` Alexey Dobriyan
2006-05-01 21:19   ` Bob Copeland
2006-05-02  5:27     ` Jens Axboe
2006-05-02  0:22 ` Al Viro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox