Skip to content

Commit

Permalink
smack_lsm: remove unnecessary type casting
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
XU pengfei authored and Casey Schaufler committed Mar 8, 2023
1 parent fe15c26 commit 502a29b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion security/smack/smack_lsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 502a29b

Please sign in to comment.