usb: dwc3: gadget: Remove redundant check
authorAmit Virdi <amit.virdi@st.com>
Fri, 19 Dec 2014 07:10:17 +0000 (12:40 +0530)
committerFelipe Balbi <balbi@ti.com>
Mon, 12 Jan 2015 18:13:24 +0000 (12:13 -0600)
commit110381e11b5fbf84bc0994d4c3f4629bc362ab4c
tree4362aad21bdd85ff44657d812c5033abede6bc32
parent997f4f81dff243858b6cdd8c3ddb39e05a050c22
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: Amit Virdi <amit.virdi@st.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/gadget.c