@@ -668,7 +668,7 @@ idmap_pipe_downcall(struct file *filp, const char __user *src, size_t mlen)
{
struct request_key_auth *rka;
struct rpc_inode *rpci = RPC_I(file_inode(filp));
- struct idmap *idmap = (struct idmap *)rpci->private;
+ struct idmap *idmap = rpci->private;
struct key *authkey;
struct idmap_msg im;
size_t namelen_in;
@@ -735,7 +735,7 @@ static void
idmap_release_pipe(struct inode *inode)
{
struct rpc_inode *rpci = RPC_I(inode);
- struct idmap *idmap = (struct idmap *)rpci->private;
+ struct idmap *idmap = rpci->private;
nfs_idmap_abort_pipe_upcall(idmap, -EPIPE);
}
No need cast (void*) to (struct idmap *). Signed-off-by: yuzhe <yuzhe@nfschina.com> --- fs/nfs/nfs4idmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)