From: Matthijs Kooijman Date: Mon, 29 Apr 2013 19:46:35 +0000 (+0000) Subject: staging: dwc2: remove unneeded check X-Git-Tag: upstream/snapshot3+hdmi~4847^2~734 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1208605f1aef0f4fc6b2eaefd6a698dd2214f35a;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git staging: dwc2: remove unneeded check The value in params->enable_dynamic_fifo can only be true if the corresponding bit in hwcfg2 is set, this is already checked by dwc2_set_param_enable_dynamic_fifo. Signed-off-by: Matthijs Kooijman Acked-by: Paul Zimmerman Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/dwc2/core.c b/drivers/staging/dwc2/core.c index 6578ed5..89b19d7 100644 --- a/drivers/staging/dwc2/core.c +++ b/drivers/staging/dwc2/core.c @@ -506,8 +506,7 @@ static void dwc2_config_fifos(struct dwc2_hsotg *hsotg) struct dwc2_core_params *params = hsotg->core_params; u32 rxfsiz, nptxfsiz, ptxfsiz, hptxfsiz, dfifocfg; - if (!(hsotg->hwcfg2 & GHWCFG2_DYNAMIC_FIFO) || - !params->enable_dynamic_fifo) + if (!params->enable_dynamic_fifo) return; dev_dbg(hsotg->dev, "Total FIFO Size=%d\n", hsotg->total_fifo_size);