]> git.baikalelectronics.ru Git - kernel.git/commit
block: fix bogus gcc warning for uninitialized var usage
authorJens Axboe <jens.axboe@oracle.com>
Thu, 19 Feb 2009 07:50:26 +0000 (08:50 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 26 Feb 2009 09:45:48 +0000 (10:45 +0100)
commit64dcb7655786e7feb2aa791bad96304d220a3726
treeb38745750c948b519e4c46bb9589d3a61c6359f4
parentd03a45431b28e648ae77abd5b4af02acc82ce0a6
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: Jens Axboe <jens.axboe@oracle.com>
fs/bio.c