summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/setup_32.c
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2005-10-20 20:48:19 +1000
committerPaul Mackerras <paulus@samba.org>2005-10-20 20:48:19 +1000
commit0dd194d02d2584c34e06ddd26c7a7896a5fa1974 (patch)
treef5441cf5497d78d0c3ed5ce9d9ae47328426f4f8 /arch/powerpc/kernel/setup_32.c
parenta9c59264690aea9d0df2d2d76683bc39ec6b7288 (diff)
downloadop-kernel-dev-0dd194d02d2584c34e06ddd26c7a7896a5fa1974.zip
op-kernel-dev-0dd194d02d2584c34e06ddd26c7a7896a5fa1974.tar.gz
powerpc: Fix places where ppc_md.show_[per]cpuinfo was treated as int
I missed a few places where ppc code was still assuming that the ppc_md.show_[per]cpuinfo functions returned int. Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/setup_32.c')
-rw-r--r--arch/powerpc/kernel/setup_32.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/arch/powerpc/kernel/setup_32.c b/arch/powerpc/kernel/setup_32.c
index b95f7cf..b9269c0 100644
--- a/arch/powerpc/kernel/setup_32.c
+++ b/arch/powerpc/kernel/setup_32.c
@@ -150,7 +150,6 @@ extern u32 cpu_temp_both(unsigned long cpu);
int show_cpuinfo(struct seq_file *m, void *v)
{
int i = (int) v - 1;
- int err = 0;
unsigned int pvr;
unsigned short maj, min;
unsigned long lpj;
@@ -167,8 +166,8 @@ int show_cpuinfo(struct seq_file *m, void *v)
#endif /* CONFIG_SMP */
if (ppc_md.show_cpuinfo != NULL)
- err = ppc_md.show_cpuinfo(m);
- return err;
+ ppc_md.show_cpuinfo(m);
+ return 0;
}
#ifdef CONFIG_SMP
@@ -210,15 +209,12 @@ int show_cpuinfo(struct seq_file *m, void *v)
}
#endif /* CONFIG_TAU */
- if (ppc_md.show_percpuinfo != NULL) {
- err = ppc_md.show_percpuinfo(m, i);
- if (err)
- return err;
- }
+ if (ppc_md.show_percpuinfo != NULL)
+ ppc_md.show_percpuinfo(m, i);
/* If we are a Freescale core do a simple check so
* we dont have to keep adding cases in the future */
- if ((PVR_VER(pvr) & 0x8000) == 0x8000) {
+ if (PVR_VER(pvr) & 0x8000) {
maj = PVR_MAJ(pvr);
min = PVR_MIN(pvr);
} else {
OpenPOWER on IntegriCloud