module: only handle errors with the *switch* statement in module_sig_check()
authorSergey Shtylyov <s.shtylyov@omprussia.ru>
Sat, 31 Oct 2020 20:10:28 +0000 (23:10 +0300)
committerJessica Yu <jeyu@kernel.org>
Wed, 4 Nov 2020 14:31:29 +0000 (15:31 +0100)
commit076aa52e402185e1e347bf5c62c61c6388fce4c7
tree1eba3e721f9aba874a49e23e923023deee146eaf
parent10ccd1abb808599a6dc7c9389560016ea3568085
module: only handle errors with the *switch* statement in module_sig_check()

Let's handle the successful call of mod_verify_sig() right after that call,
making the *switch* statement only handle the real errors, and then move
the comment from the first *case* before *switch* itself and the comment
before *default* after it.  Fix the comment style, add article/comma/dash,
spell out "nomem" as "lack of memory" in these comments, while at it...

Suggested-by: Joe Perches <joe@perches.com>
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Signed-off-by: Sergey Shtylyov <s.shtylyov@omprussia.ru>
Signed-off-by: Jessica Yu <jeyu@kernel.org>
kernel/module.c