From: Julien Delacou Date: Thu, 11 Jul 2013 12:24:10 +0000 (+0200) Subject: staging: dwc2: fix value used in dwc2_set_all_params X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b39ed5c7b480f720d549987c9b3acd0833eafc8e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging: dwc2: fix value used in dwc2_set_all_params This fix uses 'value' parameter as it should be instead of hardcoded -1. Signed-off-by: Julien Delacou Acked-by: Paul Zimmerman Reviewed-by: Matthijs Kooijman Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/dwc2/hcd.c b/drivers/staging/dwc2/hcd.c index 962468f06716..d4ef5f34c2a0 100644 --- a/drivers/staging/dwc2/hcd.c +++ b/drivers/staging/dwc2/hcd.c @@ -2719,7 +2719,7 @@ void dwc2_set_all_params(struct dwc2_core_params *params, int value) int i; for (i = 0; i < size; i++) - p[i] = -1; + p[i] = value; } EXPORT_SYMBOL_GPL(dwc2_set_all_params);