Remove a redundant NULL pointer check in cpuset_modify_domain().

cpuset_getroot() is guaranteed to return a non-NULL pointer.

Reported by:	Mark Millard <marklmi@yahoo.com>
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Mark Johnston 2019-09-12 16:47:38 +00:00
parent 52b05d6607
commit 45cdd437ae

View file

@ -796,7 +796,7 @@ cpuset_modify_domain(struct cpuset *set, struct domainset *domain)
/*
* Verify that we have access to this set of domains.
*/
if (root && !domainset_valid(dset, domain)) {
if (!domainset_valid(dset, domain)) {
error = EINVAL;
goto out;
}