mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
USB: Checking the wrong variable in usb_disable_lpm()
We check "u1_params" instead of checking "u2_params". Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Sarah Sharp <[email protected]>
This commit is contained in:
parent
f2d0ed7134
commit
55558c33d6
1 changed files with 1 additions and 1 deletions
|
|
@ -3379,7 +3379,7 @@ int usb_disable_lpm(struct usb_device *udev)
|
|||
return 0;
|
||||
|
||||
udev->lpm_disable_count++;
|
||||
if ((udev->u1_params.timeout == 0 && udev->u1_params.timeout == 0))
|
||||
if ((udev->u1_params.timeout == 0 && udev->u2_params.timeout == 0))
|
||||
return 0;
|
||||
|
||||
/* If LPM is enabled, attempt to disable it. */
|
||||
|
|
|
|||
Loading…
Reference in a new issue