Commit 9f0af69b authored by Nikanth Karthikesan's avatar Nikanth Karthikesan Committed by Jiri Kosina
Browse files

sysfs-memory: fix uninitialized variable warning and clean-up code.



sysfs-memory: Fix uninitialized variable warning and clean-up code.
Signed-off-by: default avatarNikanth Karthikesan <knikanth@suse.de>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 06794eae
......@@ -396,15 +396,14 @@ memory_probe_store(struct class *class, struct class_attribute *attr,
ret = add_memory(nid, phys_addr,
PAGES_PER_SECTION << PAGE_SHIFT);
if (ret)
break;
goto out;
phys_addr += MIN_MEMORY_BLOCK_SIZE;
}
if (ret)
count = ret;
return count;
ret = count;
out:
return ret;
}
static CLASS_ATTR(probe, S_IWUSR, NULL, memory_probe_store);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment