Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 216756
b: refs/heads/master
c: f277707
h: refs/heads/master
v: v3
  • Loading branch information
Andy Shevchenko authored and Martin Schwidefsky committed Oct 25, 2010
1 parent 935fd73 commit f9f3892
Show file tree
Hide file tree
Showing 2 changed files with 5 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: ed3640b285d831065eb0507cdca7d125f6f78e8d
refs/heads/master: f2777077aa1f6f8a7c76b83f240975289a9fb894
10 changes: 4 additions & 6 deletions trunk/drivers/s390/cio/blacklist.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,15 @@ static int pure_hex(char **cp, unsigned int *val, int min_digit,
int max_digit, int max_val)
{
int diff;
unsigned int value;

diff = 0;
*val = 0;

while (isxdigit(**cp) && (diff <= max_digit)) {
while (diff <= max_digit) {
int value = hex_to_bin(**cp);

if (isdigit(**cp))
value = **cp - '0';
else
value = tolower(**cp) - 'a' + 10;
if (value < 0)
break;
*val = *val * 16 + value;
(*cp)++;
diff++;
Expand Down

0 comments on commit f9f3892

Please sign in to comment.