diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2006-05-23 04:56:56 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2006-05-23 04:56:56 +0000 |
commit | 11048ce25ed6634b9d1a4487cb87a2c68d4bda95 (patch) | |
tree | 88eff3233529c90f9f35eb534035fc78c26a3461 | |
parent | 88ad7dd279f16a983a33c42e9924b3baf48defb2 (diff) |
knf and remove an unneeded debug message
-rw-r--r-- | sys/net/if_trunk.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/net/if_trunk.c b/sys/net/if_trunk.c index 60e552af177..b6957723b23 100644 --- a/sys/net/if_trunk.c +++ b/sys/net/if_trunk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_trunk.c,v 1.27 2006/05/23 04:35:52 reyk Exp $ */ +/* $OpenBSD: if_trunk.c,v 1.28 2006/05/23 04:56:55 reyk Exp $ */ /* * Copyright (c) 2005, 2006 Reyk Floeter <reyk@openbsd.org> @@ -1283,7 +1283,7 @@ const void * trunk_lb_gethdr(struct mbuf *m, u_int off, u_int len, void *buf) { if (m->m_pkthdr.len < (off + len)) { - return (NULL); + return (NULL); } else if (m->m_len < (off + len)) { m_copydata(m, off, len, buf); return (buf); @@ -1363,9 +1363,6 @@ trunk_lb_start(struct trunk_softc *tr, struct mbuf *m) return (EINVAL); tp = lb->lb_ports[idx]; - if (tr->tr_ifflags & IFF_DEBUG) - printf("%s: %d: port %u\n", __func__, __LINE__, p); - send: /* * Check the port's link state. This will return the next active |