diff options
author | XU pengfei <xupengfei@nfschina.com> | 2022-10-26 10:29:24 +0200 |
---|---|---|
committer | Casey Schaufler <casey@schaufler-ca.com> | 2023-03-08 18:35:20 +0100 |
commit | 502a29b04d857c28aa36f8829a5c673b9b8864a6 (patch) | |
tree | 4b94ff383877997f21d6cde4c457e0678e224eab /security/smack | |
parent | Linux 6.3-rc1 (diff) | |
download | linux-502a29b04d857c28aa36f8829a5c673b9b8864a6.tar.xz 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/smack')
-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) |