Commit 8519660b authored by Ilpo Järvinen's avatar Ilpo Järvinen Committed by David S. Miller

[NET] core/utils.c: digit2bin is dead static inline

Signed-off-by: default avatarIlpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 112d8cfc
...@@ -91,17 +91,6 @@ EXPORT_SYMBOL(in_aton); ...@@ -91,17 +91,6 @@ EXPORT_SYMBOL(in_aton);
#define IN6PTON_NULL 0x20000000 /* first/tail */ #define IN6PTON_NULL 0x20000000 /* first/tail */
#define IN6PTON_UNKNOWN 0x40000000 #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) static inline int xdigit2bin(char c, int delim)
{ {
if (c == delim || c == '\0') if (c == delim || c == '\0')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment