summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorXU pengfei <xupengfei@nfschina.com>2022-10-26 11:29:24 +0300
committerCasey Schaufler <casey@schaufler-ca.com>2023-03-08 20:35:20 +0300
commit502a29b04d857c28aa36f8829a5c673b9b8864a6 (patch)
tree4b94ff383877997f21d6cde4c457e0678e224eab /security
parentfe15c26ee26efa11741a7b632e9f23b01aca4cc6 (diff)
downloadlinux-502a29b04d857c28aa36f8829a5c673b9b8864a6.tar.xz
smack_lsm: remove unnecessary type casting
Remove unnecessary type casting. The type of inode variable is struct inode *, so no type casting required. Signed-off-by: XU pengfei <xupengfei@nfschina.com> Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Diffstat (limited to 'security')
-rw-r--r--security/smack/smack_lsm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c
index cfcbb748da25..24ade96e17b3 100644
--- a/security/smack/smack_lsm.c
+++ b/security/smack/smack_lsm.c
@@ -1477,7 +1477,7 @@ static int smack_inode_getsecurity(struct mnt_idmap *idmap,
struct socket_smack *ssp;
struct socket *sock;
struct super_block *sbp;
- struct inode *ip = (struct inode *)inode;
+ struct inode *ip = inode;
struct smack_known *isp;
if (strcmp(name, XATTR_SMACK_SUFFIX) == 0)