From: Eric Sesterhenn Date: Tue, 28 Mar 2006 09:56:24 +0000 (-0800) Subject: [PATCH] Change dash2underscore() return value to char X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b9e20a920092eb3840424f85c78852c0433df00d;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git [PATCH] Change dash2underscore() return value to char Since dash2underscore() just operates and returns chars, I guess its safe to change the return value to a char. With my .config, this reduces its size by 5 bytes. text data bss dec hex filename 4155 152 0 4307 10d3 params.o.orig 4150 152 0 4302 10ce params.o Signed-off-by: Eric Sesterhenn Signed-off-by: Alexey Dobriyan Signed-off-by: Adrian Bunk Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/params.c b/kernel/params.c index 9de637a5c8bc..af43ecdc8d9b 100644 --- a/kernel/params.c +++ b/kernel/params.c @@ -31,7 +31,7 @@ #define DEBUGP(fmt, a...) #endif -static inline int dash2underscore(char c) +static inline char dash2underscore(char c) { if (c == '-') return '_';