mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
52b05d6607
commit
45cdd437ae
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue