]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
staging: dwc2: fix value used in dwc2_set_all_params
authorJulien Delacou <julien.delacou@stericsson.com>
Thu, 11 Jul 2013 12:24:10 +0000 (14:24 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Jul 2013 21:56:17 +0000 (14:56 -0700)
This fix uses 'value' parameter as it should be instead
of hardcoded -1.

Signed-off-by: Julien Delacou <julien.delacou@stericsson.com>
Acked-by: Paul Zimmerman <paulz@synopys.com>
Reviewed-by: Matthijs Kooijman <matthijs@stdin.nl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dwc2/hcd.c

index 962468f067161b9fd7e5f47920a6bb68fb3b7e39..d4ef5f34c2a097a995b8714d01d61d808cc1b41d 100644 (file)
@@ -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);