提交 ecddcb75 编写于 作者: A Alexis Lothoré 提交者: Greg Kroah-Hartman

staging: emxx_udc: Balance "else" parenthesis

Add missing parenthesis for else statement
Signed-off-by: NAlexis Lothoré <alexis.lothore@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 75d9c393
...@@ -526,12 +526,13 @@ static void _nbu2ss_dma_unmap_single( ...@@ -526,12 +526,13 @@ static void _nbu2ss_dma_unmap_single(
if (direct == USB_DIR_OUT) if (direct == USB_DIR_OUT)
memcpy(req->req.buf, ep->virt_buf, memcpy(req->req.buf, ep->virt_buf,
req->req.actual & 0xfffffffc); req->req.actual & 0xfffffffc);
} else } else {
dma_unmap_single(udc->gadget.dev.parent, dma_unmap_single(udc->gadget.dev.parent,
req->req.dma, req->req.length, req->req.dma, req->req.length,
(direct == USB_DIR_IN) (direct == USB_DIR_IN)
? DMA_TO_DEVICE ? DMA_TO_DEVICE
: DMA_FROM_DEVICE); : DMA_FROM_DEVICE);
}
req->req.dma = DMA_ADDR_INVALID; req->req.dma = DMA_ADDR_INVALID;
req->mapped = 0; req->mapped = 0;
} else { } else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册