diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2018-08-17 15:44:17 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-08-17 16:20:27 -0700 |
commit | 82f7c5103dcdd714486a64cfc5783cc4608d124c (patch) | |
tree | 654a705b9389e0cf50dbe554e6e75e119fe92628 /tools | |
parent | ab62ef82ea49b8814f4b0e2fe61426acda793fb9 (diff) | |
download | linux-82f7c5103dcdd714486a64cfc5783cc4608d124c.tar.bz2 |
sh: make use of for_each_node_by_type()
Instead of open-coding the loop, let's use canned macro.
Also make sure we are not leaking "cpus" node reference.
Link: http://lkml.kernel.org/r/20180624224252.GA220395@dtor-ws
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: Rich Felker <dalias@libc.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions