diff options
| author | Alan Stern <[email protected]> | 2017-10-25 10:40:05 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2017-11-01 16:57:23 +0100 |
| commit | 32bf9fd50ff439184ddcf925cfb3c6bc0138f7c5 (patch) | |
| tree | a4c77840d24897b0e11e5cc2ebca9113016c30ef /tools/perf/scripts/python | |
| parent | f93de0c27e87ad3d28ddd094a46bbf294183a71e (diff) | |
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 <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions