diff options
| author | Alan Stern <stern@rowland.harvard.edu> | 2017-10-25 10:40:05 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-11-01 16:57:23 +0100 |
| commit | 32bf9fd50ff439184ddcf925cfb3c6bc0138f7c5 (patch) | |
| tree | a4c77840d24897b0e11e5cc2ebca9113016c30ef /tools/perf/scripts/python/stackcollapse.py | |
| parent | usb: gadget: udc: dummy_hcd: mark expected switch fall-throughs (diff) | |
| download | linux-32bf9fd50ff439184ddcf925cfb3c6bc0138f7c5.tar.gz linux-32bf9fd50ff439184ddcf925cfb3c6bc0138f7c5.zip | |
usb-storage: make use of srb local variable
Commit 8b52291a0743 ("usb-storage: fix deadlock involving host lock
and scsi_done") added a local variable to usb_stor_control_thread() in
the usb-storage driver. This local variable holds the value of
us->srb, for use after the host lock has been released.
But as long as we have the value in a local variable, we may as well
use it instead of dereferencing the us pointer all over the place.
This patch makes no functional change; it just makes the code a little
shorter and a little neater.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
