[PATCH 03/12] staging: remove unused methods
From: Andy Shevchenko
Date: Thu Feb 18 2010 - 13:58:43 EST
From: Andy Shevchenko <ext-andriy.shevchenko@xxxxxxxxx>
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@xxxxxxxxx>
---
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/