/* Returns 0 on success, -EINVAL if MTU is out of valid range. (valid range is 576 .. NETIUCV_MTU_MAX).  */
static int netiucv_change_mtu(struct net_device *dev, int new_mtu)
/* Returns 0 on success, -EINVAL if MTU is out of valid range. (valid range is 576 .. NETIUCV_MTU_MAX).  */
static int netiucv_change_mtu(struct net_device *dev, int new_mtu)
{
	IUCV_DBF_TEXT(trace, 3, __func__);
	if (new_mtu < 576 || new_mtu > NETIUCV_MTU_MAX) {
		IUCV_DBF_TEXT(setup, 2, "given MTU out of valid range\n");
		return -EINVAL;
	}
	dev->mtu = new_mtu;
	return 0;
}