qeth: remove unnecessary support ckeck in sysfs route6
Removing this check improves usability because you do not have to set the device online to initially set ipv6 routing option. Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:
committed by
Jeff Garzik
parent
e1f03ae802
commit
cc181282fb
@@ -121,9 +121,6 @@ static ssize_t qeth_l3_dev_route6_show(struct device *dev,
|
|||||||
if (!card)
|
if (!card)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
if (!qeth_is_supported(card, IPA_IPV6))
|
|
||||||
return sprintf(buf, "%s\n", "n/a");
|
|
||||||
|
|
||||||
return qeth_l3_dev_route_show(card, &card->options.route6, buf);
|
return qeth_l3_dev_route_show(card, &card->options.route6, buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -135,10 +132,6 @@ static ssize_t qeth_l3_dev_route6_store(struct device *dev,
|
|||||||
if (!card)
|
if (!card)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
if (!qeth_is_supported(card, IPA_IPV6)) {
|
|
||||||
return -EOPNOTSUPP;
|
|
||||||
}
|
|
||||||
|
|
||||||
return qeth_l3_dev_route_store(card, &card->options.route6,
|
return qeth_l3_dev_route_store(card, &card->options.route6,
|
||||||
QETH_PROT_IPV6, buf, count);
|
QETH_PROT_IPV6, buf, count);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user