]> git.baikalelectronics.ru Git - kernel.git/commit
s390/qeth: use DEFINE_MUTEX for qeth_mod_mutex
authorJulian Wiedmann <jwi@linux.ibm.com>
Wed, 26 Sep 2018 16:29:03 +0000 (18:29 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Sep 2018 16:56:07 +0000 (09:56 -0700)
commit48fe18b8d7a1deb02fd8b25d3a73c42bc8de64e4
tree5f233fd573520659a7aa4d440510580f96241f24
parent4f08c108d23a47c1a343d64a152381c870b335db
s390/qeth: use DEFINE_MUTEX for qeth_mod_mutex

Consolidate declaration and initialization of a static variable.
While at it reduce its scope in qeth_core_load_discipline(), and simplify
the return logic accordingly.

Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/qeth_core_main.c