Skip to content
Commit 12b4157b authored by Andy Shevchenko's avatar Andy Shevchenko Committed by J. Bruce Fields
Browse files

nfsd: remove private bin2hex implementation



Calling sprintf in a loop is not very efficient, and in any case,
we already have an implementation of bin-to-hex conversion in lib/
which we might as well use.

Note that original code used to nul-terminate the destination while
bin2hex doesn't. That's why replace kmalloc() with kzalloc().

Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 6e73e92b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment