All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] [Patch] change dash2underscore return value to char
@ 2006-02-21 21:23 Eric Sesterhenn
  0 siblings, 0 replies; only message in thread
From: Eric Sesterhenn @ 2006-02-21 21:23 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 702 bytes --]

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 <snakebyte@gmx.de>

--- linux-2.6.16-rc4/kernel/params.c.orig	2006-02-21 22:18:51.000000000 +0100
+++ linux-2.6.16-rc4/kernel/params.c	2006-02-21 22:19:00.000000000 +0100
@@ -31,7 +31,7 @@
 #define DEBUGP(fmt, a...)
 #endif
 
-static inline int dash2underscore(char c)
+static inline char dash2underscore(char c)
 {
 	if (c == '-')
 		return '_';



[-- Attachment #2: Type: text/plain, Size: 168 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

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

only message in thread, other threads:[~2006-02-21 21:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-21 21:23 [KJ] [Patch] change dash2underscore return value to char Eric Sesterhenn

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.