openrisc: remove use of seq_printf return value
authorJoe Perches <joe@perches.com>
Wed, 15 Apr 2015 23:18:05 +0000 (16:18 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 15 Apr 2015 23:35:25 +0000 (16:35 -0700)
The seq_printf return value, because it's frequently misused,
will eventually be converted to void.

See: commit 1f33c41c03da ("seq_file: Rename seq_overflow() to
     seq_has_overflowed() and make public")

Signed-off-by: Joe Perches <joe@perches.com>
Cc: Jonas Bonn <jonas@southpole.se>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/openrisc/kernel/setup.c

index 4fc7ccc0a2cf5b43549f9de2ed09124a196b5766..b4ed8b36e078df104958fe0fd41af1d2371c96b4 100644 (file)
@@ -329,30 +329,32 @@ static int show_cpuinfo(struct seq_file *m, void *v)
        version = (vr & SPR_VR_VER) >> 24;
        revision = vr & SPR_VR_REV;
 
-       return seq_printf(m,
-                         "cpu\t\t: OpenRISC-%x\n"
-                         "revision\t: %d\n"
-                         "frequency\t: %ld\n"
-                         "dcache size\t: %d bytes\n"
-                         "dcache block size\t: %d bytes\n"
-                         "icache size\t: %d bytes\n"
-                         "icache block size\t: %d bytes\n"
-                         "immu\t\t: %d entries, %lu ways\n"
-                         "dmmu\t\t: %d entries, %lu ways\n"
-                         "bogomips\t: %lu.%02lu\n",
-                         version,
-                         revision,
-                         loops_per_jiffy * HZ,
-                         cpuinfo.dcache_size,
-                         cpuinfo.dcache_block_size,
-                         cpuinfo.icache_size,
-                         cpuinfo.icache_block_size,
-                         1 << ((mfspr(SPR_DMMUCFGR) & SPR_DMMUCFGR_NTS) >> 2),
-                         1 + (mfspr(SPR_DMMUCFGR) & SPR_DMMUCFGR_NTW),
-                         1 << ((mfspr(SPR_IMMUCFGR) & SPR_IMMUCFGR_NTS) >> 2),
-                         1 + (mfspr(SPR_IMMUCFGR) & SPR_IMMUCFGR_NTW),
-                         (loops_per_jiffy * HZ) / 500000,
-                         ((loops_per_jiffy * HZ) / 5000) % 100);
+       seq_printf(m,
+                  "cpu\t\t: OpenRISC-%x\n"
+                  "revision\t: %d\n"
+                  "frequency\t: %ld\n"
+                  "dcache size\t: %d bytes\n"
+                  "dcache block size\t: %d bytes\n"
+                  "icache size\t: %d bytes\n"
+                  "icache block size\t: %d bytes\n"
+                  "immu\t\t: %d entries, %lu ways\n"
+                  "dmmu\t\t: %d entries, %lu ways\n"
+                  "bogomips\t: %lu.%02lu\n",
+                  version,
+                  revision,
+                  loops_per_jiffy * HZ,
+                  cpuinfo.dcache_size,
+                  cpuinfo.dcache_block_size,
+                  cpuinfo.icache_size,
+                  cpuinfo.icache_block_size,
+                  1 << ((mfspr(SPR_DMMUCFGR) & SPR_DMMUCFGR_NTS) >> 2),
+                  1 + (mfspr(SPR_DMMUCFGR) & SPR_DMMUCFGR_NTW),
+                  1 << ((mfspr(SPR_IMMUCFGR) & SPR_IMMUCFGR_NTS) >> 2),
+                  1 + (mfspr(SPR_IMMUCFGR) & SPR_IMMUCFGR_NTW),
+                  (loops_per_jiffy * HZ) / 500000,
+                  ((loops_per_jiffy * HZ) / 5000) % 100);
+
+       return 0;
 }
 
 static void *c_start(struct seq_file *m, loff_t * pos)