Skip to content

Commit

Permalink
qeth: remove unnecessary support ckeck in sysfs route6
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Frank Blaschka authored and Jeff Garzik committed Oct 27, 2008
1 parent e1f03ae commit cc18128
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions drivers/s390/net/qeth_l3_sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,6 @@ static ssize_t qeth_l3_dev_route6_show(struct device *dev,
if (!card)
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);
}

Expand All @@ -135,10 +132,6 @@ static ssize_t qeth_l3_dev_route6_store(struct device *dev,
if (!card)
return -EINVAL;

if (!qeth_is_supported(card, IPA_IPV6)) {
return -EOPNOTSUPP;
}

return qeth_l3_dev_route_store(card, &card->options.route6,
QETH_PROT_IPV6, buf, count);
}
Expand Down

0 comments on commit cc18128

Please sign in to comment.