aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-06-14 10:43:11 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-23 07:02:01 +0200
commit65bbdd49b4722a09901469e57497850311c017dc (patch)
tree36cfb4d672f4a69b925afc57203490d6a892e7c1 /drivers
parentABI: sysfs-driver-mlxreg-io: fix the what fields (diff)
downloadlinux-dev-65bbdd49b4722a09901469e57497850311c017dc.tar.xz
linux-dev-65bbdd49b4722a09901469e57497850311c017dc.zip
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/misc/lkdtm/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/lkdtm/core.c b/drivers/misc/lkdtm/core.c
index bae3b3763f3e..d416359daf06 100644
--- a/drivers/misc/lkdtm/core.c
+++ b/drivers/misc/lkdtm/core.c
@@ -387,7 +387,7 @@ static int __init lkdtm_module_init(void)
{
struct crashpoint *crashpoint = NULL;
const struct crashtype *crashtype = NULL;
- int ret = -EINVAL;
+ int ret;
int i;
/* Neither or both of these need to be set */