[PATCH -next] cpuset: drop pointless static qualifier in cpuset_hotplug_workfn

From: YueHaibing
Date: Wed Jan 23 2019 - 03:47:56 EST


There is no need to have the 'new_mems' variable static since new
value always be assigned before use it.

Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>
---
kernel/cgroup/cpuset.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.c
index 843829b..df6edac 100644
--- a/kernel/cgroup/cpuset.c
+++ b/kernel/cgroup/cpuset.c
@@ -3106,7 +3106,7 @@ static void cpuset_hotplug_update_tasks(struct cpuset *cs, struct tmpmasks *tmp)
static void cpuset_hotplug_workfn(struct work_struct *work)
{
static cpumask_t new_cpus;
- static nodemask_t new_mems;
+ nodemask_t new_mems;
bool cpus_updated, mems_updated;
bool on_dfl = is_in_v2_mode();
struct tmpmasks tmp, *ptmp = NULL;
--
2.7.0