diff options
author | XU pengfei <xupengfei@nfschina.com> | 2022-10-26 16:29:24 +0800 |
---|---|---|
committer | Casey Schaufler <casey@schaufler-ca.com> | 2023-03-08 09:35:20 -0800 |
commit | 502a29b04d857c28aa36f8829a5c673b9b8864a6 (patch) | |
tree | 4b94ff383877997f21d6cde4c457e0678e224eab /security | |
parent | fe15c26ee26efa11741a7b632e9f23b01aca4cc6 (diff) | |
download | linux-502a29b04d857c28aa36f8829a5c673b9b8864a6.tar.gz linux-502a29b04d857c28aa36f8829a5c673b9b8864a6.tar.bz2 linux-502a29b04d857c28aa36f8829a5c673b9b8864a6.zip |
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.c | 2 |
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) |