[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20171204181424.15808-1-colin.king@canonical.com>
Date: Mon, 4 Dec 2017 18:14:24 +0000
From: Colin King <colin.king@...onical.com>
To: David Howells <dhowells@...hat.com>,
James Morris <james.l.morris@...cle.com>,
"Serge E . Hallyn" <serge@...lyn.com>, keyrings@...r.kernel.org,
linux-security-module@...r.kernel.org
Cc: kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] security: keys: remove redundant assignment to key_ref
From: Colin Ian King <colin.king@...onical.com>
Variable key_ref is being assigned a value that is never read;
key_ref is being re-assigned a few statements later. Hence this
assignment is redundant and can be removed.
Signed-off-by: Colin Ian King <colin.king@...onical.com>
---
security/keys/key.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/security/keys/key.c b/security/keys/key.c
index 66049183ad89..d97c9394b5dd 100644
--- a/security/keys/key.c
+++ b/security/keys/key.c
@@ -833,7 +833,6 @@ key_ref_t key_create_or_update(key_ref_t keyring_ref,
key_check(keyring);
- key_ref = ERR_PTR(-EPERM);
if (!(flags & KEY_ALLOC_BYPASS_RESTRICTION))
restrict_link = keyring->restrict_link;
--
2.14.1
Powered by blists - more mailing lists