mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-29 22:36:48 +07:00
powerpc: pci-ioda: Remove unnecessary return value from printk
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>
This commit is contained in:
parent
2a58222f82
commit
45eb47242d
@ -42,12 +42,11 @@
|
|||||||
#include "pci.h"
|
#include "pci.h"
|
||||||
|
|
||||||
#define define_pe_printk_level(func, kern_level) \
|
#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; \
|
struct va_format vaf; \
|
||||||
va_list args; \
|
va_list args; \
|
||||||
char pfix[32]; \
|
char pfix[32]; \
|
||||||
int r; \
|
|
||||||
\
|
\
|
||||||
va_start(args, fmt); \
|
va_start(args, fmt); \
|
||||||
\
|
\
|
||||||
@ -61,12 +60,10 @@ static int func(const struct pnv_ioda_pe *pe, const char *fmt, ...) \
|
|||||||
sprintf(pfix, "%04x:%02x ", \
|
sprintf(pfix, "%04x:%02x ", \
|
||||||
pci_domain_nr(pe->pbus), \
|
pci_domain_nr(pe->pbus), \
|
||||||
pe->pbus->number); \
|
pe->pbus->number); \
|
||||||
r = printk(kern_level "pci %s: [PE# %.3d] %pV", \
|
printk(kern_level "pci %s: [PE# %.3d] %pV", \
|
||||||
pfix, pe->pe_number, &vaf); \
|
pfix, pe->pe_number, &vaf); \
|
||||||
\
|
\
|
||||||
va_end(args); \
|
va_end(args); \
|
||||||
\
|
|
||||||
return r; \
|
|
||||||
} \
|
} \
|
||||||
|
|
||||||
define_pe_printk_level(pe_err, KERN_ERR);
|
define_pe_printk_level(pe_err, KERN_ERR);
|
||||||
|
Loading…
Reference in New Issue
Block a user