[2.6 patch] Change dash2underscore() return value to char

From: Adrian Bunk
Date: Sun Mar 26 2006 - 07:21:28 EST


From: Eric Sesterhenn <snakebyte@xxxxxx>

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@xxxxxx>
Signed-off-by: Alexey Dobriyan <adobriyan@xxxxxxxxx>
Signed-off-by: Adrian Bunk <bunk@xxxxxxxxx>

---

This patch was sent by Alexey Dobriyan on:
- 4 Mar 2006

--- 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 '_';

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/