PERFORCE change 123874 for review
Constantine A. Murenin
cnst at FreeBSD.org
Sat Jul 21 23:42:02 UTC 2007
http://perforce.freebsd.org/chv.cgi?CH=123874
Change 123874 by cnst at dale on 2007/07/21 23:41:40
KNF
Affected files ...
.. //depot/projects/soc2007/cnst-sensors/sys.kern/kern_sysctl.c#3 edit
Differences ...
==== //depot/projects/soc2007/cnst-sensors/sys.kern/kern_sysctl.c#3 (text+ko) ====
@@ -156,18 +156,16 @@
int error;
error = ENOENT;
- if (oidp->oid_number == OID_AUTO) {
+ if (oidp->oid_number == OID_AUTO)
error = EINVAL;
- } else {
- SLIST_FOREACH(p, oidp->oid_parent, oid_link) {
+ else
+ SLIST_FOREACH(p, oidp->oid_parent, oid_link)
if (p == oidp) {
SLIST_REMOVE(oidp->oid_parent, oidp,
sysctl_oid, oid_link);
error = 0;
break;
}
- }
- }
/*
* This can happen when a module fails to register and is
More information about the p4-projects
mailing list