From mboxrd@z Thu Jan 1 00:00:00 1970 From: frank.blaschka@de.ibm.com Subject: [patch 3/4] qeth: remove unnecessary support ckeck in sysfs route6 Date: Fri, 24 Oct 2008 11:16:54 +0200 Message-ID: <20081024091733.417039000@de.ibm.com> References: <20081024091651.603673000@de.ibm.com> Return-path: Content-Disposition: inline; filename=604-qeth-ipv6check.diff Sender: netdev-owner@vger.kernel.org List-Archive: List-Post: To: jgarzik@pobox.com Cc: netdev@vger.kernel.org, linux-s390@vger.kernel.org List-ID: From: Frank Blaschka 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 --- drivers/s390/net/qeth_l3_sys.c | 7 ------- 1 file changed, 7 deletions(-) Index: git_linus/drivers/s390/net/qeth_l3_sys.c =================================================================== --- git_linus.orig/drivers/s390/net/qeth_l3_sys.c +++ git_linus/drivers/s390/net/qeth_l3_sys.c @@ -121,9 +121,6 @@ static ssize_t qeth_l3_dev_route6_show(s 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); } @@ -135,10 +132,6 @@ static ssize_t qeth_l3_dev_route6_store( 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); } --