* + mm-drop-useless-local-parameters-of-__register_one_node.patch added to -mm tree
@ 2017-06-22 21:59 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2017-06-22 21:59 UTC (permalink / raw)
To: douly.fnst, isimatu.yasuaki, mhocko, rientjes, mm-commits
The patch titled
Subject: mm: drop useless local parameters of __register_one_node()
has been added to the -mm tree. Its filename is
mm-drop-useless-local-parameters-of-__register_one_node.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/mm-drop-useless-local-parameters-of-__register_one_node.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/mm-drop-useless-local-parameters-of-__register_one_node.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: Dou Liyang <douly.fnst@cn.fujitsu.com>
Subject: mm: drop useless local parameters of __register_one_node()
__register_one_node() initializes local parameters "p_node" & "parent" for
register_node().
But, register_node() does not use them.
Remove the related code of "parent" node, cleanup __register_one_node()
and register_node().
Link: http://lkml.kernel.org/r/1498013846-20149-1-git-send-email-douly.fnst@cn.fujitsu.com
Signed-off-by: Dou Liyang <douly.fnst@cn.fujitsu.com>
Acked-by: David Rientjes <rientjes@google.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: <isimatu.yasuaki@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
drivers/base/node.c | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff -puN drivers/base/node.c~mm-drop-useless-local-parameters-of-__register_one_node drivers/base/node.c
--- a/drivers/base/node.c~mm-drop-useless-local-parameters-of-__register_one_node
+++ a/drivers/base/node.c
@@ -288,7 +288,7 @@ static void node_device_release(struct d
*
* Initialize and register the node device.
*/
-static int register_node(struct node *node, int num, struct node *parent)
+static int register_node(struct node *node, int num)
{
int error;
@@ -567,19 +567,14 @@ static void init_node_hugetlb_work(int n
int __register_one_node(int nid)
{
- int p_node = parent_node(nid);
- struct node *parent = NULL;
int error;
int cpu;
- if (p_node != nid)
- parent = node_devices[p_node];
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-06-22 21:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-22 21:59 + mm-drop-useless-local-parameters-of-__register_one_node.patch added to -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.