Patch series "taskstats: tidy up the cpumask command path". Two small cleanups from reading kernel/taskstats.c. No functional change in either one. This patch (of 2): taskstats_user_cmd() only calls the cpumask handlers after checking the same info->attrs[] entry, so parse() never sees a NULL attribute. Drop the check and its odd "return 1", which no caller tested for anyway. No functional change.
Unified · Split
| @@ -361,8 +361,6 @@ static int parse(struct nlattr *na, struct cpumask *mask) · 360 unmodified lines | ||
| 361 | 361 | int len; |
| 362 | 362 | int ret; |
| 363 | 363 | |
| 364 | − if (na == NULL) | |
| 365 | − return 1; | |
| 366 | 364 | len = nla_len(na); |
| 367 | 365 | if (len > TASKSTATS_CPUMASK_MAXLEN) |
| 368 | 366 | return -E2BIG; |