From: Ilpo Järvinen Date: Sun, 13 Jan 2008 05:28:37 +0000 (-0800) Subject: [NET] core/utils.c: digit2bin is dead static inline X-Git-Tag: v2.6.25-rc1~1162^2~765 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8519660b98349fb922157fa2f5fb6e49eb17ad38;p=linux-2.6 [NET] core/utils.c: digit2bin is dead static inline Signed-off-by: Ilpo Järvinen Signed-off-by: David S. Miller --- diff --git a/net/core/utils.c b/net/core/utils.c index 34459c4c74..8031eb5905 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')