summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorMimi Zohar <zohar@linux.vnet.ibm.com>2011-09-20 17:23:49 +0200
committerMimi Zohar <zohar@linux.vnet.ibm.com>2011-09-21 05:24:44 +0200
commitb78049831ffed65f0b4e61f69df14f3ab17922cb (patch)
tree196c37c7eeab26e5e71d4735cb4dd7a0fa9951df /firmware
parentTOMOYO: Allow specifying domain transition preference. (diff)
downloadlinux-b78049831ffed65f0b4e61f69df14f3ab17922cb.tar.xz
linux-b78049831ffed65f0b4e61f69df14f3ab17922cb.zip
lib: add error checking to hex2bin
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: Mimi Zohar <zohar@linux.vnet.ibm.com> Acked-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Diffstat (limited to 'firmware')
0 files changed, 0 insertions, 0 deletions