From: Mimi Zohar Date: Tue, 20 Sep 2011 15:23:49 +0000 (-0400) Subject: lib: add error checking to hex2bin X-Git-Tag: v3.2-rc1~190^2~14^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b78049831ffed65f0b4e61f69df14f3ab17922cb;p=pandora-kernel.git 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 Acked-by: Andy Shevchenko --- Reading git-diff-tree failed