Commit 3428e918 authored by Gargi Sharma's avatar Gargi Sharma Committed by Greg Kroah-Hartman

staging: emxx_udc: add braces to if-else block

add braces to if/else clause to fix the checkpatch issue braces {}
should be used on all arms of if/else block. Does not affect flow
because only single statement inside if/else block.
Signed-off-by: default avatarGargi Sharma <gs051095@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 190b9517
...@@ -477,9 +477,9 @@ static void _nbu2ss_dma_map_single( ...@@ -477,9 +477,9 @@ static void _nbu2ss_dma_map_single(
) )
{ {
if (req->req.dma == DMA_ADDR_INVALID) { if (req->req.dma == DMA_ADDR_INVALID) {
if (req->unaligned) if (req->unaligned) {
req->req.dma = ep->phys_buf; req->req.dma = ep->phys_buf;
else { } else {
req->req.dma = dma_map_single( req->req.dma = dma_map_single(
udc->gadget.dev.parent, udc->gadget.dev.parent,
req->req.buf, req->req.buf,
...@@ -1235,9 +1235,9 @@ static int _nbu2ss_start_transfer( ...@@ -1235,9 +1235,9 @@ static int _nbu2ss_start_transfer(
req->dma_flag = FALSE; req->dma_flag = FALSE;
req->div_len = 0; req->div_len = 0;
if (req->req.length == 0) if (req->req.length == 0) {
req->zero = false; req->zero = false;
else { } else {
if ((req->req.length % ep->ep.maxpacket) == 0) if ((req->req.length % ep->ep.maxpacket) == 0)
req->zero = req->req.zero; req->zero = req->req.zero;
else else
...@@ -1940,9 +1940,9 @@ static void _nbu2ss_ep_done( ...@@ -1940,9 +1940,9 @@ static void _nbu2ss_ep_done(
if (likely(req->req.status == -EINPROGRESS)) if (likely(req->req.status == -EINPROGRESS))
req->req.status = status; req->req.status = status;
if (ep->stalled) if (ep->stalled) {
_nbu2ss_epn_set_stall(udc, ep); _nbu2ss_epn_set_stall(udc, ep);
else { } else {
if (!list_empty(&ep->queue)) if (!list_empty(&ep->queue))
_nbu2ss_restert_transfer(ep); _nbu2ss_restert_transfer(ep);
} }
...@@ -2473,8 +2473,9 @@ static irqreturn_t _nbu2ss_udc_irq(int irq, void *_udc) ...@@ -2473,8 +2473,9 @@ static irqreturn_t _nbu2ss_udc_irq(int irq, void *_udc)
_nbu2ss_writel(&preg->USB_INT_STA, ~USB_INT_STA_RW); _nbu2ss_writel(&preg->USB_INT_STA, ~USB_INT_STA_RW);
_nbu2ss_writel(&preg->USB_INT_ENA, 0); _nbu2ss_writel(&preg->USB_INT_ENA, 0);
status = 0; status = 0;
} else } else {
status = _nbu2ss_readl(&preg->USB_INT_STA); status = _nbu2ss_readl(&preg->USB_INT_STA);
}
if (status == 0) if (status == 0)
break; break;
......
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