Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Himangi Saraogi and committed by
Trond Myklebust
8ee2b78a adcda652

+1 -1
+1 -1
fs/nfs/nfs4xdr.c
··· 7092 7092 if (!status) 7093 7093 status = decode_sequence(xdr, &res->seq_res, rqstp); 7094 7094 if (!status) 7095 - status = decode_reclaim_complete(xdr, (void *)NULL); 7095 + status = decode_reclaim_complete(xdr, NULL); 7096 7096 return status; 7097 7097 } 7098 7098