diff options
author | John Ogness <john.ogness@linutronix.de> | 2018-06-25 01:08:41 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-06-28 13:36:06 +0300 |
commit | 7375fc9f5f162e783661ee9cdb85a62ec5f6b6d5 (patch) | |
tree | 714cee3a393adf37a83a6ec78fa7136454ca2207 /drivers/usb/misc/iowarrior.c | |
parent | 8982c8440f564549261fb80ca3fe1e3266635936 (diff) | |
download | linux-7375fc9f5f162e783661ee9cdb85a62ec5f6b6d5.tar.xz |
usb: wusbcore: remove excessive irqsave
wa_urb_dequeue() locks multiple spinlocks while disabling interrupts:
spin_lock_irqsave(&lock1, flags);
spin_lock_irqsave(&lock2, flags2);
Obviously there is no need for the second irqsave and "flags2" variable
since interrupts are disabled at that point. Remove the second irqsave:
spin_lock_irqsave(&lock1, flags);
spin_lock(&lock2);
and eliminate the flags2 variable.
Signed-off-by: John Ogness <john.ogness@linutronix.de>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/misc/iowarrior.c')
0 files changed, 0 insertions, 0 deletions