ocfs2-remove-some-redundant-casting.patch removed from -mm tree
Subject: [merged] ocfs2-remove-some-redundant-casting.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Thu, 05 Jun 2014 12:42:42 -0700
The patch titled
Subject: ocfs2: remove some redundant casting
has been removed from the -mm tree. Its filename was
ocfs2-remove-some-redundant-casting.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: "George Spelvin" <[email protected]>
Subject: 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*.
---
fs/ocfs2/refcounttree.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
fs/ocfs2/refcounttree.c renamed from fs/ocfs2/refcounttree.c~ocfs2-remove-some-redundant-casting +3 -4
@@ -1408,10 +1408,9 @@ static void swap_refcount_rec(void *a, v {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; }/*
_
Patches currently in -mm which might be from [email protected] are
origin.patch
linux-next.patch