NFSv4: Drop cast
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- fs/nfs/nfs4xdr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/nfs/nfs4xdr.c +1 -1
@@ -7092,7 +7092,7 @@ static int nfs4_xdr_dec_reclaim_complete(struct rpc_rqst *rqstp,if (!status) status =decode_sequence (xdr, &res->seq_res, rqstp);if (!status) - status =decode_reclaim_complete (xdr, (void *)NULL ); + status =decode_reclaim_complete (xdr,NULL );return status; }
Signature · 1 line
1.9.1