]> git.baikalelectronics.ru Git - kernel.git/commit
s390/qeth: use kstrtobool() in qeth_bridgeport_hostnotification_store()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 18 Oct 2017 15:40:16 +0000 (17:40 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Oct 2017 12:11:04 +0000 (13:11 +0100)
commit212a531d3e09efb8c788c79d8b8608306b92b55c
treecb4373e659700399a188fc9d6ffb1c3fc0feec17
parentdaf5947c6e17ee99cfc79bf22295531a738eb25a
s390/qeth: use kstrtobool() in qeth_bridgeport_hostnotification_store()

The sysfs enabled value is a boolean, so kstrtobool() is a better fit
for parsing the input string since it does the range checking for us.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Julian Wiedmann <jwi@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/qeth_l2_sys.c