+ ocfs2-remove-some-redundant-casting.patch added to -mm tree
Subject: + ocfs2-remove-some-redundant-casting.patch added to -mm tree
To: [email protected],[email protected],[email protected]
From: [email protected]
Date: Tue, 13 May 2014 13:13:02 -0700
The patch titled
Subject: ocfs2: remove some redundant casting
has been added to the -mm tree. Its filename is
ocfs2-remove-some-redundant-casting.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/ocfs2-remove-some-redundant-casting.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/ocfs2-remove-some-redundant-casting.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated there every 3-4 working days
------------------------------------------------------
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
ocfs2-remove-some-redundant-casting.patch