lkml.org 
[lkml]   [2010]   [Feb]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 03/12] staging: remove unused methods
Date
From: Andy Shevchenko <ext-andriy.shevchenko@nokia.com>

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

Signed-off-by: Andy Shevchenko <ext-andriy.shevchenko@nokia.com>
---
drivers/staging/otus/apdbg.c | 25 -------------------------
1 files changed, 0 insertions(+), 25 deletions(-)
diff --git a/drivers/staging/otus/apdbg.c b/drivers/staging/otus/apdbg.c
index 0eb93f1..30d07ef 100644
--- a/drivers/staging/otus/apdbg.c
+++ b/drivers/staging/otus/apdbg.c
@@ -90,9 +90,6 @@ struct zdap_ioctl {

#endif

-char hex(char);
-unsigned char asctohex(char *str);
-
char *prgname;

int set_ioctl(int sock, struct ifreq *req)
@@ -380,25 +377,3 @@ fail:
exit(0);
}

-unsigned char asctohex(char *str)
-{
- unsigned char value;
-
- value = hex(*str) & 0x0f;
- value = value << 4;
- str++;
- value |= hex(*str) & 0x0f;
-
- return value;
-}
-
-char hex(char v)
-{
- if (isdigit(v))
- return v - '0';
- else if (isxdigit(v))
- return tolower(v) - 'a' + 10;
- else
- return 0;
-}
-
--
1.5.6.5


\
 
 \ /
  Last update: 2010-02-18 20:01    [from the cache]
©2003-2011 Jasper Spaans