Skip to content

Commit c68bb0e

Browse files
GustavoARSilvagregkh
authored andcommitted
usb: musb: compress return logic into one line
Simplify return logic to avoid unnecessary variable assignment. Signed-off-by: Gustavo A. R. Silva <[email protected]> Acked-by: Bin Liu <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 17129d4 commit c68bb0e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/usb/musb/musb_host.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1540,7 +1540,7 @@ static int musb_rx_dma_iso_cppi41(struct dma_controller *dma,
15401540
struct dma_channel *channel = hw_ep->rx_channel;
15411541
void __iomem *epio = hw_ep->regs;
15421542
dma_addr_t *buf;
1543-
u32 length, res;
1543+
u32 length;
15441544
u16 val;
15451545

15461546
buf = (void *)urb->iso_frame_desc[qh->iso_idx].offset +
@@ -1552,10 +1552,8 @@ static int musb_rx_dma_iso_cppi41(struct dma_controller *dma,
15521552
val |= MUSB_RXCSR_DMAENAB;
15531553
musb_writew(hw_ep->regs, MUSB_RXCSR, val);
15541554

1555-
res = dma->channel_program(channel, qh->maxpacket, 0,
1555+
return dma->channel_program(channel, qh->maxpacket, 0,
15561556
(u32)buf, length);
1557-
1558-
return res;
15591557
}
15601558
#else
15611559
static inline int musb_rx_dma_iso_cppi41(struct dma_controller *dma,

0 commit comments

Comments
 (0)