diff options
author | Himangi Saraogi <himangi774@gmail.com> | 2014-06-26 14:39:09 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2014-07-12 18:43:47 -0400 |
commit | 8ee2b78a444c6715e873486794b5c4af705cd975 (patch) | |
tree | 5e796aa6190f9453382366749f32f144a52e01ba /fs | |
parent | adcda652c92c4881f74cca7f9ca3388bb498d997 (diff) |
NFSv4: Drop cast
This patch does away with the cast on void * as it is unnecessary.
The following Coccinelle semantic patch was used for making the change:
@r@
expression x;
void* e;
type T;
identifier f;
@@
(
*((T *)e)
|
((T *)x)[...]
|
((T *)x)->f
|
- (T *)
e
)
Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfs/nfs4xdr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c index 939ae606cfa4..e13b59d8d9aa 100644 --- a/fs/nfs/nfs4xdr.c +++ b/fs/nfs/nfs4xdr.c | |||
@@ -7092,7 +7092,7 @@ static int nfs4_xdr_dec_reclaim_complete(struct rpc_rqst *rqstp, | |||
7092 | if (!status) | 7092 | if (!status) |
7093 | status = decode_sequence(xdr, &res->seq_res, rqstp); | 7093 | status = decode_sequence(xdr, &res->seq_res, rqstp); |
7094 | if (!status) | 7094 | if (!status) |
7095 | status = decode_reclaim_complete(xdr, (void *)NULL); | 7095 | status = decode_reclaim_complete(xdr, NULL); |
7096 | return status; | 7096 | return status; |
7097 | } | 7097 | } |
7098 | 7098 | ||