]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Some minor cleanups:
authorGleb Smirnoff <glebius@FreeBSD.org>
Tue, 22 May 2007 16:17:31 +0000 (16:17 +0000)
committerGleb Smirnoff <glebius@FreeBSD.org>
Tue, 22 May 2007 16:17:31 +0000 (16:17 +0000)
commita0c0e34bd41ba7f250149472450bf162246c4a5a
treeb94d40167398039e5b81a1a924a2e7c75cd8b8c2
parentadae7080fbc11e109761995655f8e32f49c3d1bf
Some minor cleanups:
- In rt_check() remove the senderr() macro and the "bad" label. They
  used to simplify code, but now aren't.
- Remove extra RT_LOCK_ASSERT() in rt_setgate(). The RT_REMREF macro
  does this.
- In rtfree() convert panics to KASSERTs.
- Strict the routing API: rtfree() should be called only in a case
  when we are completely sure we've got the last reference on the
  rtentry. In all other cases RTFREE_LOCKED() macro should be used.
  If the reference isn't the last one spit out a warning printf.
  Correct the only(?) case for this in rt_check().
- Fix typos in comments.
sys/net/route.c