projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe15c26
)
smack_lsm: remove unnecessary type casting
author
XU pengfei
<xupengfei@nfschina.com>
Wed, 26 Oct 2022 08:29:24 +0000
(16:29 +0800)
committer
Casey Schaufler
<casey@schaufler-ca.com>
Wed, 8 Mar 2023 17:35:20 +0000
(09:35 -0800)
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>
security/smack/smack_lsm.c
patch
|
blob
|
history
diff --git
a/security/smack/smack_lsm.c
b/security/smack/smack_lsm.c
index cfcbb748da2534c24088e5805ec8d1458c228457..24ade96e17b396416035d137b548309819c9bd1d 100644
(file)
--- 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)