]> git.baikalelectronics.ru Git - kernel.git/commit
fuse: inode: drop cast
authorHimangi Saraogi <himangi774@gmail.com>
Thu, 26 Jun 2014 17:36:52 +0000 (23:06 +0530)
committerMiklos Szeredi <mszeredi@suse.cz>
Mon, 7 Jul 2014 13:28:51 +0000 (15:28 +0200)
commitb1eadb351e47e0b5494f3db0cd5d026bdc11e62c
tree8511d21130e3d01744c2f272a971ec66f663bef7
parent655c07f0d87e86689c6d5199857bc8416a00d79e
fuse: inode: drop cast

This patch removes the cast on data of type void * as it is not needed.
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>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
fs/fuse/inode.c