* [PATCH] NFSv4: remove unnecessary (void*) conversions.
@ 2022-03-23 10:06 yuzhe
0 siblings, 0 replies; 2+ messages in thread
From: yuzhe @ 2022-03-23 10:06 UTC (permalink / raw)
To: trond.myklebust, anna
Cc: linux-nfs, linux-kernel, kernel-janitors, liqiong, yuzhe
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(-)
diff --git a/fs/nfs/nfs4idmap.c b/fs/nfs/nfs4idmap.c
index f331866dd418..6d4d602235be 100644
--- a/fs/nfs/nfs4idmap.c
+++ b/fs/nfs/nfs4idmap.c
@@ -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);
}
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] NFSv4: remove unnecessary (void*) conversions.
@ 2022-03-23 10:05 yuzhe
0 siblings, 0 replies; 2+ messages in thread
From: yuzhe @ 2022-03-23 10:05 UTC (permalink / raw)
To: trond.myklebust, anna, linux-nfs, linux-kernel, kernel-janitors, liqiong
Cc: yuzhe
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(-)
diff --git a/fs/nfs/nfs4idmap.c b/fs/nfs/nfs4idmap.c
index f331866dd418..6d4d602235be 100644
--- a/fs/nfs/nfs4idmap.c
+++ b/fs/nfs/nfs4idmap.c
@@ -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);
}
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-03-23 10:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-23 10:06 [PATCH] NFSv4: remove unnecessary (void*) conversions yuzhe
-- strict thread matches above, loose matches on Subject: below --
2022-03-23 10:05 yuzhe
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.