]> git.karo-electronics.de Git - linux-beck.git/commitdiff
lru_cache: remove use of seq_printf return value
authorJoe Perches <joe@perches.com>
Wed, 15 Apr 2015 23:18:25 +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: Lars Ellenberg <drbd-dev@lists.linbit.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/lru_cache.c

index 852c81e3ba9a55bf17e2e4c3fe037c39040cc0f3..028f5d996eef64aa960546010e8321b1b0c5a369 100644 (file)
@@ -247,10 +247,11 @@ size_t lc_seq_printf_stats(struct seq_file *seq, struct lru_cache *lc)
         * progress) and "changed", when this in fact lead to an successful
         * update of the cache.
         */
-       return seq_printf(seq, "\t%s: used:%u/%u "
-               "hits:%lu misses:%lu starving:%lu locked:%lu changed:%lu\n",
-               lc->name, lc->used, lc->nr_elements,
-               lc->hits, lc->misses, lc->starving, lc->locked, lc->changed);
+       seq_printf(seq, "\t%s: used:%u/%u hits:%lu misses:%lu starving:%lu locked:%lu changed:%lu\n",
+                  lc->name, lc->used, lc->nr_elements,
+                  lc->hits, lc->misses, lc->starving, lc->locked, lc->changed);
+
+       return 0;
 }
 
 static struct hlist_head *lc_hash_slot(struct lru_cache *lc, unsigned int enr)