1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00

Remove three unneccessary comparisons that were always true.

Spotted by: gcc
This commit is contained in:
Hartmut Brandt 2003-07-15 11:50:59 +00:00
parent 09d405d969
commit b3d4fe3d04
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=117631

View File

@ -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;
}
}