diff options
author | Alexis Lothoré <alexis.lothore@gmail.com> | 2017-05-10 19:39:42 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-05-15 07:42:00 +0200 |
commit | ecddcb75290a9ce53547c204578f39167715bf7b (patch) | |
tree | 3c6d03aa0e5cf98510a0e59d36c8b23260a1c747 /drivers/staging/emxx_udc/emxx_udc.c | |
parent | 75d9c393763da31a8a95ae514c6f3caa2429ce33 (diff) | |
download | linux-ecddcb75290a9ce53547c204578f39167715bf7b.tar.bz2 |
staging: emxx_udc: Balance "else" parenthesis
Add missing parenthesis for else statement
Signed-off-by: Alexis Lothoré <alexis.lothore@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/emxx_udc/emxx_udc.c')
-rw-r--r-- | drivers/staging/emxx_udc/emxx_udc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/emxx_udc/emxx_udc.c b/drivers/staging/emxx_udc/emxx_udc.c index 82f2c117863e..14db5f70acdb 100644 --- a/drivers/staging/emxx_udc/emxx_udc.c +++ b/drivers/staging/emxx_udc/emxx_udc.c @@ -526,12 +526,13 @@ static void _nbu2ss_dma_unmap_single( if (direct == USB_DIR_OUT) memcpy(req->req.buf, ep->virt_buf, req->req.actual & 0xfffffffc); - } else + } else { dma_unmap_single(udc->gadget.dev.parent, req->req.dma, req->req.length, (direct == USB_DIR_IN) ? DMA_TO_DEVICE : DMA_FROM_DEVICE); + } req->req.dma = DMA_ADDR_INVALID; req->mapped = 0; } else { |