Skip to content
Commit 110381e1 authored by Amit Virdi's avatar Amit Virdi Committed by Felipe Balbi
Browse files

usb: dwc3: gadget: Remove redundant check



dwc3_gadget_init_hw_endpoints calls dwc3_alloc_trb_pool only if epnum is not
equal to 0 or 1. Hence, rechecking it in the called function is redundant.

Signed-off-by: default avatarAmit Virdi <amit.virdi@st.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 997f4f81
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment