Merge "usb: f_cdev: Fix failure in function resume in f_cdev"

This commit is contained in:
qctecmdr 2022-03-30 11:16:04 -07:00 • committed by Gerrit - the friendly Code Review server
commit ffd83d5109

View file

@ -610,11 +610,11 @@ static int usb_cser_func_suspend(struct usb_function *f, u8 options)
if (!port->func_is_suspended) {
usb_cser_suspend(f);
port->func_is_suspended = true;
} else {
if (port->func_is_suspended) {
port->func_is_suspended = false;
usb_cser_resume(f);
}
}
} else {
if (port->func_is_suspended) {
port->func_is_suspended = false;
usb_cser_resume(f);
}
}
return 0;