Skip to contentSkip to conversation

mm: Remove unnecessary '0' values from err

PATCH Applied Li zeming 1 participant 1 message Sep 5, 2022

Subsystems (2)
lore
Share & tools
lore

Li zeming

author
#0 lore raw

PATCH 1/1 mm: Remove unnecessary '0' values from err

First execute the kstrtoul function and assign a value to err.

---
 mm/hugetlb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/hugetlb.c +1 -1
index e070b8593b37..be7a2c4081fc 100644
@@ -3714,7 +3714,7 @@ static ssize_t demote_store(struct kobject *kobj,
 	unsigned long nr_available;
 	nodemask_t nodes_allowed, *n_mask;
 	struct hstate *h;
-	int err = 0;
+	int err;
 	int nid;
 
 	err = kstrtoul(buf, 10, &nr_demote);
Signature · 1 line
2.18.2