Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 206651
b: refs/heads/master
c: c9ff921
h: refs/heads/master
i:
  206649: c78b9fe
  206647: 8c4edee
v: v3
  • Loading branch information
Andy Shevchenko authored and Takashi Iwai committed Jun 17, 2010
1 parent 96b8f6c commit 6553330
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: bcfde3347cadfc8967e9481b5a9ceae16ef95e38
refs/heads/master: c9ff921abecda352e987a6aae169118a3fc9aa5d
12 changes: 6 additions & 6 deletions trunk/sound/pci/riptide/riptide.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
#include <linux/gameport.h>
#include <linux/device.h>
#include <linux/firmware.h>
#include <linux/kernel.h>
#include <asm/io.h>
#include <sound/core.h>
#include <sound/info.h>
Expand Down Expand Up @@ -667,13 +668,12 @@ static u32 atoh(const unsigned char *in, unsigned int len)
unsigned char c;

while (len) {
int value;

c = in[len - 1];
if ((c >= '0') && (c <= '9'))
sum += mult * (c - '0');
else if ((c >= 'A') && (c <= 'F'))
sum += mult * (c - ('A' - 10));
else if ((c >= 'a') && (c <= 'f'))
sum += mult * (c - ('a' - 10));
value = hex_to_bin(c);
if (value >= 0)
sum += mult * value;
mult *= 16;
--len;
}
Expand Down

0 comments on commit 6553330

Please sign in to comment.