powerpc: pci-ioda: Remove unnecessary return value from printk
authorJoe Perches <joe@perches.com>
Sun, 21 Sep 2014 17:55:05 +0000 (10:55 -0700)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 25 Sep 2014 13:14:56 +0000 (23:14 +1000)
The return value is unnecessary and unused, so make the functions
void instead of int.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/pci-ioda.c

index 4441bfa84c060133674df2e12c9c13d3a022be3b..7518aa19a2ef4dcdc220c76c072e55625874cd07 100644 (file)
 #include "pci.h"
 
 #define define_pe_printk_level(func, kern_level)               \
-static int func(const struct pnv_ioda_pe *pe, const char *fmt, ...)    \
+static void func(const struct pnv_ioda_pe *pe, const char *fmt, ...)   \
 {                                                              \
        struct va_format vaf;                                   \
        va_list args;                                           \
        char pfix[32];                                          \
-       int r;                                                  \
                                                                \
        va_start(args, fmt);                                    \
                                                                \
@@ -61,12 +60,10 @@ static int func(const struct pnv_ioda_pe *pe, const char *fmt, ...) \
                sprintf(pfix, "%04x:%02x     ",                 \
                        pci_domain_nr(pe->pbus),                \
                        pe->pbus->number);                      \
-       r = printk(kern_level "pci %s: [PE# %.3d] %pV",         \
-                  pfix, pe->pe_number, &vaf);                  \
+       printk(kern_level "pci %s: [PE# %.3d] %pV",             \
+              pfix, pe->pe_number, &vaf);                      \
                                                                \
        va_end(args);                                           \
-                                                               \
-       return r;                                               \
 }                                                              \
 
 define_pe_printk_level(pe_err, KERN_ERR);