ocfs2: remove some redundant casting
authorGeorge Spelvin <[email protected]>
Wed, 4 Jun 2014 23:06:08 +0000 (16:06 -0700)
committerLinus Torvalds <[email protected]>
Wed, 4 Jun 2014 23:53:54 +0000 (16:53 -0700)
commitb3821c3f866a1c02d1537ab67abe9a824d1353ae
tree177e80546b2589dbd831d8119ebe365eb210694e
parent69201bb1132718f45078ba6454093f5e220c0350
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 <[email protected]>
Cc: Mark Fasheh <[email protected]>
Acked-by: Joel Becker <[email protected]>
Reviewed-by: Jie Liu <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/ocfs2/refcounttree.c