]> git.baikalelectronics.ru Git - kernel.git/commit
uas: replace WARN_ON_ONCE() with lockdep_assert_held()
authorSanjeev Sharma <sanjeev_sharma@mentor.com>
Tue, 12 Aug 2014 06:40:21 +0000 (12:10 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Sep 2014 04:38:08 +0000 (21:38 -0700)
commit21b8ac5e3ca23dc797f1f1ddf7c31734396794ad
treed7f02d59ca3dd839ef7a07159594f1e58279b1cb
parenteda00d4053e171808ae5cbe0b5eef7e2470a3f38
uas: replace WARN_ON_ONCE() with lockdep_assert_held()

on some architecture spin_is_locked() always return false in
uniprocessor configuration and therefore it would be advise
to replace with lockdep_assert_held().

Signed-off-by: Sanjeev Sharma <Sanjeev_Sharma@mentor.com>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/storage/uas.c