]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
NFSv4: Drop cast
authorHimangi Saraogi <himangi774@gmail.com>
Thu, 26 Jun 2014 18:39:09 +0000 (00:09 +0530)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Sat, 12 Jul 2014 22:43:47 +0000 (18:43 -0400)
commit8ee2b78a444c6715e873486794b5c4af705cd975
tree5e796aa6190f9453382366749f32f144a52e01ba
parentadcda652c92c4881f74cca7f9ca3388bb498d997
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>
fs/nfs/nfs4xdr.c