Skip to content

Commit

Permalink
[NET] core/utils.c: digit2bin is dead static inline
Browse files Browse the repository at this point in the history
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Ilpo Järvinen authored and David S. Miller committed Jan 28, 2008
1 parent 112d8cf commit 8519660
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions net/core/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 8519660

Please sign in to comment.