change dash2underscore return value to char
PATCH 1/1 change dash2underscore return value to char
hi,
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
4150 152 0 4302 10ce params.o 4155 152 0 4307 10d3 params.o.orig
Signed-off-by Eric Sesterhenn <[email protected]>
kernel/params.c renamed from kernel/params.c.orig +1 -1
@@ -31,7 +31,7 @@ #define DEBUGP(fmt, a...)#endif -static inline int dash2underscore (char c) +static inline char dash2underscore (char c) {if (c =='-' )return '_' ;
_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors