Author: markj
Date: Sun Sep 22 18:07:52 2019
New Revision: 352602
URL: https://svnweb.freebsd.org/changeset/base/352602

Log:
  MFC r352256:
  Remove a redundant NULL pointer check in cpuset_modify_domain().

Modified:
  stable/12/sys/kern/kern_cpuset.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/kern/kern_cpuset.c
==============================================================================
--- stable/12/sys/kern/kern_cpuset.c    Sun Sep 22 17:39:20 2019        
(r352601)
+++ stable/12/sys/kern/kern_cpuset.c    Sun Sep 22 18:07:52 2019        
(r352602)
@@ -796,7 +796,7 @@ cpuset_modify_domain(struct cpuset *set, struct 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;
                }
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to