]> git.baikalelectronics.ru Git - kernel.git/commit
lib/hexdump.c: return -EINVAL in case of error in hex2bin()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 8 Sep 2017 23:15:28 +0000 (16:15 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 9 Sep 2017 01:26:49 +0000 (18:26 -0700)
commit7e9ac68ee55882e89afda72bcec8b1a4ef7d7fa2
tree0d8596815377b7f283e7c361e3a9018b99ee3856
parentad9a8928261f07863a8d788362ea1c6033f60098
lib/hexdump.c: return -EINVAL in case of error in hex2bin()

In some cases caller would like to use error code directly without
shadowing.

-EINVAL feels a rightful code to return in case of error in hex2bin().

Link: http://lkml.kernel.org/r/20170731135510.68023-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/hexdump.c