diff options
author | YASUOKA Masahiko <yasuoka@cvs.openbsd.org> | 2012-11-29 22:56:09 +0000 |
---|---|---|
committer | YASUOKA Masahiko <yasuoka@cvs.openbsd.org> | 2012-11-29 22:56:09 +0000 |
commit | 9fd3649d3fe844fed5cb9a0d99e6be49b6a23c54 (patch) | |
tree | 5f8a4e45988bfba6c8608332af11ff450fc529c1 /sys | |
parent | e42c6ff5cafa2fdf5dd75b68cada0e852e7b5e31 (diff) |
Delete needless check for NULL. From Michael W. Bombardieri.
no binary changes on i386.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if_ppp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_ppp.c b/sys/net/if_ppp.c index f7cf3d30384..2e3a5a7329c 100644 --- a/sys/net/if_ppp.c +++ b/sys/net/if_ppp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ppp.c,v 1.66 2012/11/26 20:21:14 markus Exp $ */ +/* $OpenBSD: if_ppp.c,v 1.67 2012/11/29 22:56:08 yasuoka Exp $ */ /* $NetBSD: if_ppp.c,v 1.39 1997/05/17 21:11:59 christos Exp $ */ /* @@ -1136,7 +1136,7 @@ ppp_ccp(struct ppp_softc *sc, struct mbuf *m, int rcvd) mp = m->m_next; if (mp == NULL) return; - dp = (mp != NULL)? mtod(mp, u_char *): NULL; + dp = mtod(mp, u_char *); } else { mp = m; dp = mtod(mp, u_char *) + PPP_HDRLEN; |