diff options
-rw-r--r-- | net/sunrpc/cache.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/sunrpc/cache.c b/net/sunrpc/cache.c index a72de074172d..0877db0787b1 100644 --- a/net/sunrpc/cache.c +++ b/net/sunrpc/cache.c | |||
@@ -1111,9 +1111,7 @@ void qword_addhex(char **bpp, int *lp, char *buf, int blen) | |||
1111 | *bp++ = 'x'; | 1111 | *bp++ = 'x'; |
1112 | len -= 2; | 1112 | len -= 2; |
1113 | while (blen && len >= 2) { | 1113 | while (blen && len >= 2) { |
1114 | unsigned char c = *buf++; | 1114 | bp = hex_byte_pack(bp, *buf++); |
1115 | *bp++ = '0' + ((c&0xf0)>>4) + (c>=0xa0)*('a'-'9'-1); | ||
1116 | *bp++ = '0' + (c&0x0f) + ((c&0x0f)>=0x0a)*('a'-'9'-1); | ||
1117 | len -= 2; | 1115 | len -= 2; |
1118 | blen--; | 1116 | blen--; |
1119 | } | 1117 | } |