]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ocfs2: remove some redundant casting
authorGeorge Spelvin <linux@horizon.com>
Thu, 22 May 2014 00:42:30 +0000 (10:42 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 May 2014 00:42:30 +0000 (10:42 +1000)
commitaebc93f2233436b993db4404d49b4b48dae17ab6
tree80f34eb5a4299e794b49ec0dbd7b5d83d5202d4c
parentb5423c6907793e8ce72c839b0f610b3ad107b1ba
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>
fs/ocfs2/refcounttree.c