public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [2.6 patch] Change dash2underscore() return value to char
@ 2006-03-26 12:23 Adrian Bunk
  0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2006-03-26 12:23 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Eric Sesterhenn, linux-kernel, Alexey Dobriyan

From: Eric Sesterhenn <snakebyte@gmx.de>

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>

---

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-03-26 12:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-26 12:23 [2.6 patch] Change dash2underscore() return value to char Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox