• Mimi Zohar's avatar
    lib: add error checking to hex2bin · b7804983
    Mimi Zohar authored
    hex2bin converts a hexadecimal string to its binary representation.
    The original version of hex2bin did not do any error checking.  This
    patch adds error checking and returns the result.
    
    Changelog v1:
    - removed unpack_hex_byte()
    - changed return code from boolean to int
    
    Changelog:
    - use the new unpack_hex_byte()
    - add __must_check compiler option (Andy Shevchenko's suggestion)
    - change function API to return error checking result
      (based on Tetsuo Handa's initial patch)
    Signed-off-by: default avatarMimi Zohar <zohar@linux.vnet.ibm.com>
    Acked-by: Andy Shevchenko's avatarAndy Shevchenko <andy.shevchenko@gmail.com>
    b7804983
Name
Last commit
Last update
Documentation Loading commit data...
arch Loading commit data...
block Loading commit data...
crypto Loading commit data...
drivers Loading commit data...
firmware Loading commit data...
fs Loading commit data...
include Loading commit data...
init Loading commit data...
ipc Loading commit data...
kernel Loading commit data...
lib Loading commit data...
mm Loading commit data...
net Loading commit data...
samples Loading commit data...
scripts Loading commit data...
security Loading commit data...
sound Loading commit data...
tools Loading commit data...
usr Loading commit data...
virt/kvm Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
Kbuild Loading commit data...
Kconfig Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README Loading commit data...
REPORTING-BUGS Loading commit data...