Skip to content

Commit 8519660

Browse files
ij1davem330
authored andcommitted
[NET] core/utils.c: digit2bin is dead static inline
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 112d8cf commit 8519660

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

‎net/core/utils.c‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -91,17 +91,6 @@ EXPORT_SYMBOL(in_aton);
9191
#define IN6PTON_NULL 0x20000000 /* first/tail */
9292
#define IN6PTON_UNKNOWN 0x40000000
9393

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-
10594
static inline int xdigit2bin(char c, int delim)
10695
{
10796
if (c == delim || c == '\0')

0 commit comments

Comments
 (0)