usb: mtu3: use MTU3_EP_WEDGE flag
Use MTU3_EP_WEDGE flag instead of the member @wedged in mtu3_ep struct, then @wedged can be removed. Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com> Link: https://lore.kernel.org/r/1595834101-13094-9-git-send-email-chunfeng.yun@mediatek.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
bf77804b1c
commit
54402373c4
@@ -417,7 +417,7 @@ static int ep0_handle_feature(struct mtu3 *mtu,
|
||||
|
||||
handled = 1;
|
||||
/* ignore request if endpoint is wedged */
|
||||
if (mep->wedged)
|
||||
if (mep->flags & MTU3_EP_WEDGE)
|
||||
break;
|
||||
|
||||
mtu3_ep_stall_set(mep, set);
|
||||
|
Reference in New Issue
Block a user