diff options
-rw-r--r-- | 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 34459c4c740c..8031eb59054e 100644 --- a/net/core/utils.c +++ b/net/core/utils.c | |||
@@ -91,17 +91,6 @@ EXPORT_SYMBOL(in_aton); | |||
91 | #define IN6PTON_NULL 0x20000000 /* first/tail */ | 91 | #define IN6PTON_NULL 0x20000000 /* first/tail */ |
92 | #define IN6PTON_UNKNOWN 0x40000000 | 92 | #define IN6PTON_UNKNOWN 0x40000000 |
93 | 93 | ||
94 | static inline int digit2bin(char c, int delim) | ||
95 | { | ||
96 | if (c == delim || c == '\0') | ||
97 | return IN6PTON_DELIM; | ||
98 | if (c == '.') | ||
99 | return IN6PTON_DOT; | ||
100 | if (c >= '0' && c <= '9') | ||
101 | return (IN6PTON_DIGIT | (c - '0')); | ||
102 | return IN6PTON_UNKNOWN; | ||
103 | } | ||
104 | |||
105 | static inline int xdigit2bin(char c, int delim) | 94 | static inline int xdigit2bin(char c, int delim) |
106 | { | 95 | { |
107 | if (c == delim || c == '\0') | 96 | if (c == delim || c == '\0') |