Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Frank Blaschka and committed by
Jeff Garzik
cc181282 e1f03ae8

-7
-7
drivers/s390/net/qeth_l3_sys.c
··· 121 121 if (!card) 122 122 return -EINVAL; 123 123 124 - if (!qeth_is_supported(card, IPA_IPV6)) 125 - return sprintf(buf, "%s\n", "n/a"); 126 - 127 124 return qeth_l3_dev_route_show(card, &card->options.route6, buf); 128 125 } 129 126 ··· 131 134 132 135 if (!card) 133 136 return -EINVAL; 134 - 135 - if (!qeth_is_supported(card, IPA_IPV6)) { 136 - return -EOPNOTSUPP; 137 - } 138 137 139 138 return qeth_l3_dev_route_store(card, &card->options.route6, 140 139 QETH_PROT_IPV6, buf, count);