Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219790
b: refs/heads/master
c: 91facdb
h: refs/heads/master
v: v3
  • Loading branch information
Andy Shevchenko authored and Greg Kroah-Hartman committed Sep 8, 2010
1 parent 1db5a40 commit 5cd1d51
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: 51973d7fa0a2f2087e640200fda23f6bac71fae2
refs/heads/master: 91facdbe5075fdbc97a91b03855441eb5347cbc5
15 changes: 2 additions & 13 deletions trunk/drivers/staging/rtl8712/rtl871x_ioctl_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,6 @@ static const char * const iw_operation_mode[] = {
"Monitor"
};

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

/**
* hwaddr_aton - Convert ASCII string to MAC address
* @txt: MAC address as a string (e.g., "00:11:22:33:44:55")
Expand All @@ -86,10 +75,10 @@ static int hwaddr_aton_i(const char *txt, u8 *addr)
for (i = 0; i < 6; i++) {
int a, b;

a = hex2num_i(*txt++);
a = hex_to_bin(*txt++);
if (a < 0)
return -1;
b = hex2num_i(*txt++);
b = hex_to_bin(*txt++);
if (b < 0)
return -1;
*addr++ = (a << 4) | b;
Expand Down

0 comments on commit 5cd1d51

Please sign in to comment.