commit | eeae1d48c011839d9e1cdc1e8aacf0193c9d8197 | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Wed May 07 13:26:27 2008 +0200 |
committer | Jens Axboe <jens.axboe@oracle.com> | Wed May 07 13:26:27 2008 +0200 |
tree | 77696d424a374adf671b1afb2ed03a76a65fee48 | |
parent | 28f13702f03e527fcb979747a882cf366c489c50 [diff] |
block: use unitialized_var() in bio_alloc_bioset() Better than setting idx to some random value and it silences the same bogus gcc warning. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/fs/bio.c b/fs/bio.c index 799f86d..2fa04ff 100644 --- a/fs/bio.c +++ b/fs/bio.c
@@ -158,7 +158,7 @@ bio_init(bio); if (likely(nr_iovecs)) { - unsigned long idx = 0; /* shut up gcc */ + unsigned long uninitialized_var(idx); bvl = bvec_alloc_bs(gfp_mask, nr_iovecs, &idx, bs); if (unlikely(!bvl)) {