Skip to content
Commit b2bf9683 authored by Jens Axboe's avatar Jens Axboe
Browse files

block: fix bogus gcc warning for uninitialized var usage



Newer gcc throw this warning:

        fs/bio.c: In function ?bio_alloc_bioset?:
        fs/bio.c:305: warning: ?p? may be used uninitialized in this function

since it cannot figure out that 'p' is only ever used if 'bs' is non-NULL.

Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent 169d418b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment