module: print sensible error code
authorJason A. Donenfeld <Jason@zx2c4.com>
Fri, 22 Jun 2018 15:38:50 +0000 (17:38 +0200)
committerJessica Yu <jeyu@kernel.org>
Mon, 25 Jun 2018 08:37:08 +0000 (10:37 +0200)
commit62267e0ecc9c00a1b8ff7859cfa03e34b419f7ee
tree8a1311c254eeeb8d84a3c18e95aa2752af7e808c
parent5fdc7db6448a4f558f298b1c98d6d124fdf2ad95
module: print sensible error code

Printing "err 0" to the user in the warning message is not particularly
useful, especially when this gets transformed into a -ENOENT for the
remainder of the call chain.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Jessica Yu <jeyu@kernel.org>
kernel/module.c