diff options
| author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-03-28 04:56:24 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-28 12:16:03 -0500 |
| commit | b9e20a920092eb3840424f85c78852c0433df00d (patch) | |
| tree | 267bf2564817cc5d5c36cb4b3acd860e2ee2c126 /kernel | |
| parent | 7b7a317cf863559b49b548a8b97b2f4bdf1e149e (diff) | |
[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 <snakebyte@gmx.de>
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/params.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ | |||
| 31 | #define DEBUGP(fmt, a...) | 31 | #define DEBUGP(fmt, a...) |
| 32 | #endif | 32 | #endif |
| 33 | 33 | ||
| 34 | static inline int dash2underscore(char c) | 34 | static inline char dash2underscore(char c) |
| 35 | { | 35 | { |
| 36 | if (c == '-') | 36 | if (c == '-') |
| 37 | return '_'; | 37 | return '_'; |
