]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[S390] qdio: fix qdio_allocate_aob() declaration
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Thu, 1 Dec 2011 12:32:36 +0000 (13:32 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 1 Dec 2011 12:32:35 +0000 (13:32 +0100)
drivers/s390/cio/qdio_setup.c:24:32:
  warning: non-ANSI function declaration of function 'qdio_allocate_aob'

While at it also simplify the function.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/qdio_setup.c

index 2acc01f90a6ab138dce075d2bfd08dca6866caee..74bb1a088261438fe4e177a31ec94a270881ff9e 100644 (file)
 static struct kmem_cache *qdio_q_cache;
 static struct kmem_cache *qdio_aob_cache;
 
-struct qaob *qdio_allocate_aob()
+struct qaob *qdio_allocate_aob(void)
 {
-       struct qaob *aob;
-
-       aob = kmem_cache_zalloc(qdio_aob_cache, GFP_ATOMIC);
-       return aob;
+       return kmem_cache_zalloc(qdio_aob_cache, GFP_ATOMIC);
 }
 EXPORT_SYMBOL_GPL(qdio_allocate_aob);