diff options
author | Andy Shevchenko <andy.shevchenko@gmail.com> | 2010-07-22 19:57:07 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-07-22 14:37:44 -0700 |
commit | 3cda5bf1df1f336b3ad78a53d92e1106d40fb241 (patch) | |
tree | 816cb0ae55278862f3cd4fa51dd2bae3156f9e50 | |
parent | e02644184c0e925206f3cf19fd681065a507f05c (diff) | |
download | op-kernel-dev-3cda5bf1df1f336b3ad78a53d92e1106d40fb241.zip op-kernel-dev-3cda5bf1df1f336b3ad78a53d92e1106d40fb241.tar.gz |
staging: otus: remove unused methods
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>
-rw-r--r-- | drivers/staging/otus/apdbg.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/drivers/staging/otus/apdbg.c b/drivers/staging/otus/apdbg.c index 32c26e5..09415a6 100644 --- a/drivers/staging/otus/apdbg.c +++ b/drivers/staging/otus/apdbg.c @@ -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) |