[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1266519351-3218-10-git-send-email-andy.shevchenko@gmail.com>
Date: Thu, 18 Feb 2010 20:55:48 +0200
From: Andy Shevchenko <andy.shevchenko@...il.com>
To: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Cc: Andy Shevchenko <ext-andriy.shevchenko@...ia.com>
Subject: [PATCH 09/12] drivers: net: use kernel's method to get byte in hex form
From: Andy Shevchenko <ext-andriy.shevchenko@...ia.com>
Signed-off-by: Andy Shevchenko <ext-andriy.shevchenko@...ia.com>
---
drivers/net/ppp_synctty.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/drivers/net/ppp_synctty.c b/drivers/net/ppp_synctty.c
index 3a13cec..e4b3cf6 100644
--- a/drivers/net/ppp_synctty.c
+++ b/drivers/net/ppp_synctty.c
@@ -108,12 +108,10 @@ static void
ppp_print_hex (register __u8 * out, const __u8 * in, int count)
{
register __u8 next_ch;
- static const char hex[] = "0123456789ABCDEF";
while (count-- > 0) {
next_ch = *in++;
- *out++ = hex[(next_ch >> 4) & 0x0F];
- *out++ = hex[next_ch & 0x0F];
+ out = pack_hex_byte(out, next_ch);
++out;
}
}
--
1.5.6.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists