nfsd: remove private bin2hex implementation
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 11 Oct 2019 16:02:58 +0000 (19:02 +0300)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 11 Oct 2019 16:49:14 +0000 (12:49 -0400)
commit12b4157b7d3b666b1296b5cd4f1b675f102e2126
treece618430813747f6137b27c5285fa940eca1db5a
parent6e73e92b155c868ff7fce9d108839668caf1d9be
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: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4recover.c