diff options
author | Paul Zimmerman <Paul.Zimmerman@synopsys.com> | 2013-11-25 13:42:46 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-12-03 08:31:09 -0800 |
commit | e7e59e11700c04d822a309917c1b7520bb8578c3 (patch) | |
tree | 578b480c71d73c5c641dbd8d5793f41a60377238 | |
parent | 0b851be2737fa7533facfbf3be46678d180fee80 (diff) |
staging: dwc2: fix useless test for non-0
In dwc2_xfercomp_isoc_split_in(), the function has already exited
if len == 0, so no need to test it again
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/dwc2/hcd_intr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/dwc2/hcd_intr.c b/drivers/staging/dwc2/hcd_intr.c index 50e6de54f0f0..012f17ec1a37 100644 --- a/drivers/staging/dwc2/hcd_intr.c +++ b/drivers/staging/dwc2/hcd_intr.c @@ -935,7 +935,7 @@ static int dwc2_xfercomp_isoc_split_in(struct dwc2_hsotg *hsotg, frame_desc->actual_length += len; - if (chan->align_buf && len) { + if (chan->align_buf) { dev_vdbg(hsotg->dev, "%s(): non-aligned buffer\n", __func__); dma_sync_single_for_cpu(hsotg->dev, qtd->urb->dma, qtd->urb->length, DMA_FROM_DEVICE); |