Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 203689
b: refs/heads/master
c: 2b27822
h: refs/heads/master
i:
  203687: 00ffb41
v: v3
  • Loading branch information
Andy Shevchenko authored and David S. Miller committed Jul 23, 2010
1 parent 1ced45d commit a72b108
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e26198430919927d4c6128b77a35a6a8f735df31
refs/heads/master: 2b27822ff8f257f810761c3d23e8104d1404cf3b
15 changes: 2 additions & 13 deletions trunk/drivers/atm/nicstar.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ static void which_list(ns_dev * card, struct sk_buff *skb);
#endif
static void ns_poll(unsigned long arg);
static int ns_parse_mac(char *mac, unsigned char *esi);
static short ns_h2i(char c);
static void ns_phy_put(struct atm_dev *dev, unsigned char value,
unsigned long addr);
static unsigned char ns_phy_get(struct atm_dev *dev, unsigned long addr);
Expand Down Expand Up @@ -2824,9 +2823,9 @@ static int ns_parse_mac(char *mac, unsigned char *esi)
return -1;
j = 0;
for (i = 0; i < 6; i++) {
if ((byte1 = ns_h2i(mac[j++])) < 0)
if ((byte1 = hex_to_bin(mac[j++])) < 0)
return -1;
if ((byte0 = ns_h2i(mac[j++])) < 0)
if ((byte0 = hex_to_bin(mac[j++])) < 0)
return -1;
esi[i] = (unsigned char)(byte1 * 16 + byte0);
if (i < 5) {
Expand All @@ -2837,16 +2836,6 @@ static int ns_parse_mac(char *mac, unsigned char *esi)
return 0;
}

static short ns_h2i(char c)
{
if (c >= '0' && c <= '9')
return (short)(c - '0');
if (c >= 'A' && c <= 'F')
return (short)(c - 'A' + 10);
if (c >= 'a' && c <= 'f')
return (short)(c - 'a' + 10);
return -1;
}

static void ns_phy_put(struct atm_dev *dev, unsigned char value,
unsigned long addr)
Expand Down

0 comments on commit a72b108

Please sign in to comment.