Merge tag 'pm+acpi-3.16-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafae...
[cascardo/linux.git] / fs / ocfs2 / refcounttree.c
index 6ba4bcb..714e53b 100644 (file)
@@ -1408,10 +1408,9 @@ static void swap_refcount_rec(void *a, void *b, int size)
 {
        struct ocfs2_refcount_rec *l = a, *r = b, tmp;
 
-       tmp = *(struct ocfs2_refcount_rec *)l;
-       *(struct ocfs2_refcount_rec *)l =
-                       *(struct ocfs2_refcount_rec *)r;
-       *(struct ocfs2_refcount_rec *)r = tmp;
+       tmp = *l;
+       *l = *r;
+       *r = tmp;
 }
 
 /*