]> git.baikalelectronics.ru Git - kernel.git/commit
block: cleanup bio_alloc_bioset()
authorIngo Molnar <mingo@elte.hu>
Sat, 21 Feb 2009 10:16:36 +0000 (11:16 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 24 Mar 2009 11:35:16 +0000 (12:35 +0100)
commit3e26753f0772790bf5a4ba8ab397c5cd03598b98
tree05e4c9dd49fe841ecb5c6556aa3a5deaf05fab75
parentec3a5723f9b4608647ac8b9dc290288347f35042
block: cleanup bio_alloc_bioset()

this warning (which got fixed by commit 64dcb76):

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

Triggered because the code flow in bio_alloc_bioset() is correct
but a bit complex for the compiler to see through.

Streamline it a bit - this also makes the code a tiny bit more compact:

   text    data     bss     dec     hex filename
   7540     256      40    7836    1e9c bio.o.before
   7539     256      40    7835    1e9b bio.o.after

Also remove an older compiler-warnings annotation from this function,
it's not needed.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
fs/bio.c