mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-13 03:06:54 +07:00
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 <matthijs@stdin.nl> Acked-by: Paul Zimmerman <paulz@synopsys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
73cfe0e5d5
commit
1208605f1a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user