Skip to contentSkip to conversation

staging: dwc2: fix value used in dwc2_set_all_params

PATCH In review Julien Delacou 2 participants 2 messages Jul 11, 2013 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: dwc2: fix value used in dwc2_set_all_params

From: Julien Delacou <[email protected]>

This fix uses 'value' parameter as it should be instead of hardcoded -1.

---
 drivers/staging/dwc2/hcd.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/dwc2/hcd.c +1 -1
index 2ed54b1..ca38aaa 100644
@@ -2690,7 +2690,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);
 
Signature · 1 line
1.7.9.5
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Julien Delacou

From: Julien Delacou <[email protected]>

This fix uses 'value' parameter as it should be instead of hardcoded -1.

Woops!

Quoted 2 lines
Quoted 24 lines
---
 drivers/staging/dwc2/hcd.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/dwc2/hcd.c +1 -1
index 2ed54b1..ca38aaa 100644
@@ -2690,7 +2690,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);
 
Signature · 6 lines
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html