• Alan Stern's avatar
    usb-storage: make use of srb local variable · 32bf9fd5
    Alan Stern authored
    Commit 8b52291a ("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: default avatarAlan Stern <stern@rowland.harvard.edu>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    32bf9fd5
usb.c 31.2 KB