power: wakeup: remove use of seq_printf return value
authorJoe Perches <joe@perches.com>
Wed, 15 Apr 2015 23:17:48 +0000 (16:17 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 15 Apr 2015 23:35:24 +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: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: Len Brown <len.brown@intel.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/base/power/wakeup.c

index aab7158d2afea87c5cee091eb2af3a1ae0a7222a..77262009f89dbc39c1c93307f14c81e7d61db08b 100644 (file)
@@ -843,7 +843,6 @@ static int print_wakeup_source_stats(struct seq_file *m,
        unsigned long active_count;
        ktime_t active_time;
        ktime_t prevent_sleep_time;
-       int ret;
 
        spin_lock_irqsave(&ws->lock, flags);
 
@@ -866,17 +865,16 @@ static int print_wakeup_source_stats(struct seq_file *m,
                active_time = ktime_set(0, 0);
        }
 
-       ret = seq_printf(m, "%-12s\t%lu\t\t%lu\t\t%lu\t\t%lu\t\t"
-                       "%lld\t\t%lld\t\t%lld\t\t%lld\t\t%lld\n",
-                       ws->name, active_count, ws->event_count,
-                       ws->wakeup_count, ws->expire_count,
-                       ktime_to_ms(active_time), ktime_to_ms(total_time),
-                       ktime_to_ms(max_time), ktime_to_ms(ws->last_time),
-                       ktime_to_ms(prevent_sleep_time));
+       seq_printf(m, "%-12s\t%lu\t\t%lu\t\t%lu\t\t%lu\t\t%lld\t\t%lld\t\t%lld\t\t%lld\t\t%lld\n",
+                  ws->name, active_count, ws->event_count,
+                  ws->wakeup_count, ws->expire_count,
+                  ktime_to_ms(active_time), ktime_to_ms(total_time),
+                  ktime_to_ms(max_time), ktime_to_ms(ws->last_time),
+                  ktime_to_ms(prevent_sleep_time));
 
        spin_unlock_irqrestore(&ws->lock, flags);
 
-       return ret;
+       return 0;
 }
 
 /**