提交 8eeda55f 编写于 作者: L Li zeming 提交者: Andrew Morton

mm/hugetlb.c: remove unnecessary initialization of local `err'

Link: https://lkml.kernel.org/r/20220905020918.3552-1-zeming@nfschina.comSigned-off-by: NLi zeming <zeming@nfschina.com>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Cc: Muchun Song <songmuchun@bytedance.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
上级 19672a9e
...@@ -3718,7 +3718,7 @@ static ssize_t demote_store(struct kobject *kobj, ...@@ -3718,7 +3718,7 @@ static ssize_t demote_store(struct kobject *kobj,
unsigned long nr_available; unsigned long nr_available;
nodemask_t nodes_allowed, *n_mask; nodemask_t nodes_allowed, *n_mask;
struct hstate *h; struct hstate *h;
int err = 0; int err;
int nid; int nid;
err = kstrtoul(buf, 10, &nr_demote); err = kstrtoul(buf, 10, &nr_demote);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册