lkdtm: remove redundant initialization of ret
authorColin Ian King <colin.king@canonical.com>
Fri, 14 Jun 2019 09:43:11 +0000 (10:43 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 23 Jun 2019 05:02:01 +0000 (07:02 +0200)
commit65bbdd49b4722a09901469e57497850311c017dc
tree36cfb4d672f4a69b925afc57203490d6a892e7c1
parent4056e79faa2dc8352634b594991b4b210d724e6f
lkdtm: remove redundant initialization of ret

The variable ret is being initialized with the value -EINVAL however
this value is never read and ret is being re-assigned later on. Hence
the initialization is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/lkdtm/core.c