mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Petri T. Koistinen" <petri.koistinen@iki.fi>
To: Andrew Morton <akpm@osdl.org>
Cc: trivial@kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] fs/bio.c: initialize variable, remove warning
Date: Mon, 1 May 2006 23:55:27 +0300 (EEST)	[thread overview]
Message-ID: <Pine.LNX.4.64.0605012353100.5245@joo> (raw)

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



             reply	other threads:[~2006-05-01 20:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-01 20:55 Petri T. Koistinen [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.64.0605012353100.5245@joo \
    --to=petri.koistinen@iki.fi \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=trivial@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®