]> git.baikalelectronics.ru Git - kernel.git/commit
atm: nicstar: Replace spin_is_locked() with spin_trylock()
authorLance Roy <ldr709@gmail.com>
Thu, 4 Oct 2018 07:46:57 +0000 (00:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Oct 2018 21:31:29 +0000 (14:31 -0700)
commit0dd5c193e8f1cba09e2e75a751c628d25ddc5f6f
tree1c814239aec1dc35317299a3477d52f2bfb43932
parentde6af257ff8e7353ca3b99c5ac8a78a4c8dbcb75
atm: nicstar: Replace spin_is_locked() with spin_trylock()

ns_poll() used spin_is_locked() + spin_lock() to get achieve the same
thing as a spin_trylock(), so simplify it by using that instead. This is
also a step towards possibly removing spin_is_locked().

Signed-off-by: Lance Roy <ldr709@gmail.com>
Cc: Chas Williams <3chas3@gmail.com>
Cc: <linux-atm-general@lists.sourceforge.net>
Cc: <netdev@vger.kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/atm/nicstar.c