commit | 12b4157b7d3b666b1296b5cd4f1b675f102e2126 | [log] [tgz] |
---|---|---|
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | Fri Oct 11 19:02:58 2019 +0300 |
committer | J. Bruce Fields <bfields@redhat.com> | Fri Oct 11 12:49:14 2019 -0400 |
tree | ce618430813747f6137b27c5285fa940eca1db5a | |
parent | 6e73e92b155c868ff7fce9d108839668caf1d9be [diff] |
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>