summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2003-07-15 11:50:59 +0000
committerharti <harti@FreeBSD.org>2003-07-15 11:50:59 +0000
commit44a5a052691f26ac154bd497d1c19f85dcf7f96c (patch)
tree1920b8fbb064468c4347e70463abc44aa726da67 /sys
parent2a47fc8b0be63f17e8b84f15ef840181c2edd374 (diff)
downloadFreeBSD-src-44a5a052691f26ac154bd497d1c19f85dcf7f96c.zip
FreeBSD-src-44a5a052691f26ac154bd497d1c19f85dcf7f96c.tar.gz
Remove three unneccessary comparisons that were always true.
Spotted by: gcc
Diffstat (limited to 'sys')
-rw-r--r--sys/netgraph/atm/ng_atm.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/netgraph/atm/ng_atm.c b/sys/netgraph/atm/ng_atm.c
index 9b8818e..8ef0f53 100644
--- a/sys/netgraph/atm/ng_atm.c
+++ b/sys/netgraph/atm/ng_atm.c
@@ -638,8 +638,6 @@ ng_atm_cpcs_init(node_p node, const struct ngm_atm_cpcs_init *arg)
return (EINVAL);
data.param.vpi = arg->vpi;
- if (arg->vci > 0xffff)
- return (EINVAL);
/* allow 0.0 as catch all receive channel */
if (arg->vci == 0 && (arg->vpi != 0 || !(arg->flags & ATMIO_FLAG_NOTX)))
return (EINVAL);
@@ -655,8 +653,6 @@ ng_atm_cpcs_init(node_p node, const struct ngm_atm_cpcs_init *arg)
if (arg->tmtu == 0)
data.param.tmtu = priv->ifp->if_mtu;
else {
- if (arg->tmtu > (1 << 16))
- return (EINVAL);
data.param.tmtu = arg->tmtu;
}
}
@@ -664,8 +660,6 @@ ng_atm_cpcs_init(node_p node, const struct ngm_atm_cpcs_init *arg)
if (arg->rmtu == 0)
data.param.rmtu = priv->ifp->if_mtu;
else {
- if (arg->rmtu > (1 << 16))
- return (EINVAL);
data.param.rmtu = arg->rmtu;
}
}
OpenPOWER on IntegriCloud