From: Andy Shevchenko on
From: Andy Shevchenko <ext-andriy.shevchenko(a)nokia.com>

Signed-off-by: Andy Shevchenko <ext-andriy.shevchenko(a)nokia.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(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/