]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: remove some redundant casting
authorGeorge Spelvin <linux@horizon.com>
Wed, 4 Jun 2014 23:06:08 +0000 (16:06 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 4 Jun 2014 23:53:54 +0000 (16:53 -0700)
commit0c7c375241ab0416f9fed85a7909f0c3c63bca39
tree177e80546b2589dbd831d8119ebe365eb210694e
parent17e103fb650e26b4dc8d90a5522a83d8a9d236e9
ocfs2: remove some redundant casting

There are two standard techniques for dereferencing structures pointed
to by void *: cast to the right type each time they're used, or assign
to local variables of the right type.

But there's no need to do *both*.

Signed-off-by: George Spelvin <linux@horizon.com>
Cc: Mark Fasheh <mfasheh@suse.com>
Acked-by: Joel Becker <jlbec@evilplan.org>
Reviewed-by: Jie Liu <jeff.liu@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ocfs2/refcounttree.c