Skip to content

Commit

Permalink
[PATCH] Change dash2underscore() return value to char
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Sesterhenn authored and Linus Torvalds committed Mar 28, 2006
1 parent 7b7a317 commit b9e20a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/params.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#define DEBUGP(fmt, a...)
#endif

static inline int dash2underscore(char c)
static inline char dash2underscore(char c)
{
if (c == '-')
return '_';
Expand Down

0 comments on commit b9e20a9

Please sign in to comment.