Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 198309
b: refs/heads/master
c: 1356de0
h: refs/heads/master
i:
  198307: 9819c30
v: v3
  • Loading branch information
Andy Shevchenko authored and Linus Torvalds committed May 25, 2010
1 parent c3ace52 commit 4ea4c39
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 16 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: 69e4469a39b67e9923731d5d77d45c04837d5def
refs/heads/master: 1356de06cea80ffc84cde6a4f8779414f20f211e
15 changes: 2 additions & 13 deletions trunk/drivers/staging/rt2860/common/rtmp_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -2810,17 +2810,6 @@ void UserCfgInit(struct rt_rtmp_adapter *pAd)
}

/* IRQL = PASSIVE_LEVEL */
u8 BtoH(char ch)
{
if (ch >= '0' && ch <= '9')
return (ch - '0'); /* Handle numerals */
if (ch >= 'A' && ch <= 'F')
return (ch - 'A' + 0xA); /* Handle capitol hex digits */
if (ch >= 'a' && ch <= 'f')
return (ch - 'a' + 0xA); /* Handle small hex digits */
return (255);
}

/* */
/* FUNCTION: AtoH(char *, u8 *, int) */
/* */
Expand All @@ -2847,8 +2836,8 @@ void AtoH(char *src, u8 *dest, int destlen)
destTemp = (u8 *)dest;

while (destlen--) {
*destTemp = BtoH(*srcptr++) << 4; /* Put 1st ascii byte in upper nibble. */
*destTemp += BtoH(*srcptr++); /* Add 2nd ascii byte to above. */
*destTemp = hex_to_bin(*srcptr++) << 4; /* Put 1st ascii byte in upper nibble. */
*destTemp += hex_to_bin(*srcptr++); /* Add 2nd ascii byte to above. */
destTemp++;
}
}
Expand Down
2 changes: 0 additions & 2 deletions trunk/drivers/staging/rt2860/rtmp.h
Original file line number Diff line number Diff line change
Expand Up @@ -2356,8 +2356,6 @@ void RTMPMoveMemory(void *pDest, void *pSrc, unsigned long Length);

void AtoH(char *src, u8 *dest, int destlen);

u8 BtoH(char ch);

void RTMPPatchMacBbpBug(struct rt_rtmp_adapter *pAd);

void RTMPInitTimer(struct rt_rtmp_adapter *pAd,
Expand Down

0 comments on commit 4ea4c39

Please sign in to comment.