diff options
author | Yu Zhe <yuzhe@nfschina.com> | 2022-06-30 17:30:27 +0800 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2022-08-01 01:34:44 -0500 |
commit | 0f46608ae7a138ae5982f97414e8cfc38a2e0f7e (patch) | |
tree | 1e8299ffc007c005dfe8ee8512d542002129fbd8 /fs/cifs/inode.c | |
parent | 4da2cd0517e08c2a996b5f3e8914bdda0286d911 (diff) | |
download | linux-rpi-0f46608ae7a138ae5982f97414e8cfc38a2e0f7e.tar.gz linux-rpi-0f46608ae7a138ae5982f97414e8cfc38a2e0f7e.tar.bz2 linux-rpi-0f46608ae7a138ae5982f97414e8cfc38a2e0f7e.zip |
cifs: remove unnecessary type castings
remove unnecessary void* type castings.
Signed-off-by: Yu Zhe <yuzhe@nfschina.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/inode.c')
-rw-r--r-- | fs/cifs/inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c index 81da81e18553..3ad303dd5e5a 100644 --- a/fs/cifs/inode.c +++ b/fs/cifs/inode.c @@ -1223,7 +1223,7 @@ static const struct inode_operations cifs_ipc_inode_ops = { static int cifs_find_inode(struct inode *inode, void *opaque) { - struct cifs_fattr *fattr = (struct cifs_fattr *) opaque; + struct cifs_fattr *fattr = opaque; /* don't match inode with different uniqueid */ if (CIFS_I(inode)->uniqueid != fattr->cf_uniqueid) @@ -1247,7 +1247,7 @@ cifs_find_inode(struct inode *inode, void *opaque) static int cifs_init_inode(struct inode *inode, void *opaque) { - struct cifs_fattr *fattr = (struct cifs_fattr *) opaque; + struct cifs_fattr *fattr = opaque; CIFS_I(inode)->uniqueid = fattr->cf_uniqueid; CIFS_I(inode)->createtime = fattr->cf_createtime; |