]> git.baikalelectronics.ru Git - kernel.git/commit
staging: gasket: core: use bool type for ns_capable result
authorTodd Poynor <toddpoynor@google.com>
Tue, 31 Jul 2018 20:24:46 +0000 (13:24 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Aug 2018 18:07:03 +0000 (20:07 +0200)
commit2188ba7ddae313fe08826630b34180ecf7a003b8
treed90c514b7827ae500242d41c06f3bef06f521eb8
parent07f44f46339644b6375233b6766bdbf6b8847fc6
staging: gasket: core: use bool type for ns_capable result

When gasket core was converted from using capable() to use ns_capable()
instead, the type of the variable holding the result should have been
converted from int to bool.

Reported-by: Dmitry Torokhov <dtor@chromium.org>
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gasket/gasket_core.c