]> git.baikalelectronics.ru Git - kernel.git/commit
libstring_helpers.c:string_get_size(): return void
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Thu, 12 Feb 2015 23:01:50 +0000 (15:01 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 13 Feb 2015 02:54:13 +0000 (18:54 -0800)
commit03e5f558b5c466d9dfdc0a478a7fd6ab5b3e9529
treee07829fc569c35be5860b239ad3e9c4e2b28e6cb
parent6e3fe470e84a0909a9fb9e2ba9990bb2ca25b55f
libstring_helpers.c:string_get_size(): return void

string_get_size() was documented to return an error, but in fact always
returned 0.  Since the output always fits in 9 bytes, just document that
and let callers do what they do now: pass a small stack buffer and ignore
the return value.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/string_helpers.h
lib/string_helpers.c