From: Paul Zimmerman Date: Mon, 25 Nov 2013 21:42:46 +0000 (-0800) Subject: staging: dwc2: fix useless test for non-0 X-Git-Tag: v3.14-rc1~13^2~690 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e7e59e11700c04d822a309917c1b7520bb8578c3;p=kernel%2Fkernel-generic.git 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 Signed-off-by: Paul Zimmerman Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/dwc2/hcd_intr.c b/drivers/staging/dwc2/hcd_intr.c index 50e6de5..012f17e 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);