lkml.org 
[lkml]   [2006]   [May]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH] fs/bio.c: initialize variable, remove warning
    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)) {

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2006-05-01 22:58    [W:0.020 / U:0.996 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site