archive mirror
 help / color / mirror / Atom feed
From: Alexey Dobriyan <>
To: Andrew Morton <>
Cc: Eric Sesterhenn <>,
Subject: [PATCH] Change dash2underscore() return value to char
Date: Sat, 4 Mar 2006 20:09:09 +0300	[thread overview]
Message-ID: <> (raw)

From: Eric Sesterhenn <>

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 <>
Signed-off-by: Alexey Dobriyan <>

--- a/kernel/params.c
+++ b/kernel/params.c
@@ -31,7 +31,7 @@
 #define DEBUGP(fmt, a...)
-static inline int dash2underscore(char c)
+static inline char dash2underscore(char c)
 	if (c == '-')
 		return '_';

                 reply	other threads:[~2006-03-04 17:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \
    --subject='Re: [PATCH] Change dash2underscore() return value to char' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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