Skip to content

Commit

Permalink
staging: otus: remove unused methods
Browse files Browse the repository at this point in the history
This is rebased version of the patch [1] which was mysteriously not
pushed anywhere but acked.

Here are two methods to convert hex value to binary format. These
certain methods aren't used anywhere in kernel.

[1] http://lkml.org/lkml/2010/2/18/267

Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Andy Shevchenko authored and Greg Kroah-Hartman committed Jul 22, 2010
1 parent e026441 commit 3cda5bf
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions drivers/staging/otus/apdbg.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,28 +90,6 @@ struct zdap_ioctl {

#endif

static char hex(char v)
{
if (isdigit(v))
return v - '0';
else if (isxdigit(v))
return tolower(v) - 'a' + 10;
else
return 0;
}

static unsigned char asctohex(char *str)
{
unsigned char value;

value = hex(*str) & 0x0f;
value = value << 4;
str++;
value |= hex(*str) & 0x0f;

return value;
}

char *prgname;

int set_ioctl(int sock, struct ifreq *req)
Expand Down

0 comments on commit 3cda5bf

Please sign in to comment.