netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] [NET] core/utils.c: digit2bin is dead static inline
@ 2008-01-12 11:53 Ilpo Järvinen
  2008-01-12 11:53 ` [PATCH 2/2] [HTB]: htb_classid " Ilpo Järvinen
  2008-01-13  5:28 ` [PATCH 1/2] [NET] core/utils.c: digit2bin " David Miller
  0 siblings, 2 replies; 4+ messages in thread
From: Ilpo Järvinen @ 2008-01-12 11:53 UTC (permalink / raw)
  To: David Miller; +Cc: netdev

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
---
 net/core/utils.c |   11 -----------
 1 files changed, 0 insertions(+), 11 deletions(-)

diff --git a/net/core/utils.c b/net/core/utils.c
index 34459c4..8031eb5 100644
--- a/net/core/utils.c
+++ b/net/core/utils.c
@@ -91,17 +91,6 @@ EXPORT_SYMBOL(in_aton);
 #define IN6PTON_NULL		0x20000000	/* first/tail */
 #define IN6PTON_UNKNOWN		0x40000000
 
-static inline int digit2bin(char c, int delim)
-{
-	if (c == delim || c == '\0')
-		return IN6PTON_DELIM;
-	if (c == '.')
-		return IN6PTON_DOT;
-	if (c >= '0' && c <= '9')
-		return (IN6PTON_DIGIT | (c - '0'));
-	return IN6PTON_UNKNOWN;
-}
-
 static inline int xdigit2bin(char c, int delim)
 {
 	if (c == delim || c == '\0')
-- 
1.5.0.6


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-01-13  5:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-12 11:53 [PATCH 1/2] [NET] core/utils.c: digit2bin is dead static inline Ilpo Järvinen
2008-01-12 11:53 ` [PATCH 2/2] [HTB]: htb_classid " Ilpo Järvinen
2008-01-13  5:29   ` David Miller
2008-01-13  5:28 ` [PATCH 1/2] [NET] core/utils.c: digit2bin " David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).