ocfs2: remove some redundant casting
[firefly-linux-kernel-4.4.55.git] / fs / ocfs2 / refcounttree.c
index 6ba4bcbc479601bcad6a98ba7a73ccc80dc40710..714e53b9cc6606a178ee2c8f0121fd12156c0539 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;
 }
 
 /*