Skip to content

Commit 65bbdd4

Browse files
Colin Ian Kinggregkh
authored andcommitted
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>
1 parent 4056e79 commit 65bbdd4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/misc/lkdtm/core.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ static int __init lkdtm_module_init(void)
387387
{
388388
struct crashpoint *crashpoint = NULL;
389389
const struct crashtype *crashtype = NULL;
390-
int ret = -EINVAL;
390+
int ret;
391391
int i;
392392

393393
/* Neither or both of these need to be set */

0 commit comments

Comments
 (0)