diff options
author | arr <arr@FreeBSD.org> | 2002-05-21 18:52:24 +0000 |
---|---|---|
committer | arr <arr@FreeBSD.org> | 2002-05-21 18:52:24 +0000 |
commit | 37981f345cceca42470a26bc5c4164cbdbd630cb (patch) | |
tree | 3a864b73f84ee96f800b6e857658551c76ef181c /sys/netinet/if_atm.c | |
parent | a491c6f95a0bde0a1667d8dc7d0e50801a057133 (diff) | |
download | FreeBSD-src-37981f345cceca42470a26bc5c4164cbdbd630cb.zip FreeBSD-src-37981f345cceca42470a26bc5c4164cbdbd630cb.tar.gz |
- Change the newly turned INVARIANTS #ifdef blocks (they were changed from
DIAGNOSTIC yesterday) into KASSERT()'s as these help to increase code
readability.
Diffstat (limited to 'sys/netinet/if_atm.c')
-rw-r--r-- | sys/netinet/if_atm.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/netinet/if_atm.c b/sys/netinet/if_atm.c index acad219..934309b 100644 --- a/sys/netinet/if_atm.c +++ b/sys/netinet/if_atm.c @@ -125,11 +125,8 @@ atm_rtrequest(req, rt, info) break; } -#ifdef INVARIANTS - if (rt->rt_ifp->if_ioctl == NULL) - panic("atm_rtrequest: atm null ioctl"); -#endif - + KASSERT(rt->rt_ifp->if_ioctl != NULL, + ("atm_rtrequest: null ioctl")); #ifdef NATM /* * let native ATM know we are using this VCI/VPI |