Commit defe40af authored by Pawel Laszczak's avatar Pawel Laszczak Committed by Peter Chen

usb: cdns3: Variable 'length' set but not used

Patch removes not used variable 'length' from
cdns3_wa2_descmiss_copy_data function.

Fixes: 141e70fe ("usb: cdns3: gadget: need to handle sg case for workaround 2 case")
Acked-by: default avatarRoger Quadros <rogerq@ti.com>
Signed-off-by: default avatarPawel Laszczak <pawell@cadence.com>
Signed-off-by: default avatarPeter Chen <peter.chen@nxp.com>
parent 3650b228
...@@ -506,7 +506,6 @@ static void cdns3_wa2_descmiss_copy_data(struct cdns3_endpoint *priv_ep, ...@@ -506,7 +506,6 @@ static void cdns3_wa2_descmiss_copy_data(struct cdns3_endpoint *priv_ep,
while (!list_empty(&priv_ep->wa2_descmiss_req_list)) { while (!list_empty(&priv_ep->wa2_descmiss_req_list)) {
int chunk_end; int chunk_end;
int length;
descmiss_priv_req = descmiss_priv_req =
cdns3_next_priv_request(&priv_ep->wa2_descmiss_req_list); cdns3_next_priv_request(&priv_ep->wa2_descmiss_req_list);
...@@ -517,7 +516,6 @@ static void cdns3_wa2_descmiss_copy_data(struct cdns3_endpoint *priv_ep, ...@@ -517,7 +516,6 @@ static void cdns3_wa2_descmiss_copy_data(struct cdns3_endpoint *priv_ep,
break; break;
chunk_end = descmiss_priv_req->flags & REQUEST_INTERNAL_CH; chunk_end = descmiss_priv_req->flags & REQUEST_INTERNAL_CH;
length = request->actual + descmiss_req->actual;
request->status = descmiss_req->status; request->status = descmiss_req->status;
__cdns3_descmiss_copy_data(request, descmiss_req); __cdns3_descmiss_copy_data(request, descmiss_req);
list_del_init(&descmiss_priv_req->list); list_del_init(&descmiss_priv_req->list);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment