Skip to contentSkip to conversation

intel_th:Fix repeated initialization

PATCH New Wang Ming 1 participant 1 message Jul 5, 2023

Subsystems (2)
lore
Share & tools
lore

Wang Ming

author
#0 lore raw

PATCH 1/1 intel_th:Fix repeated initialization

In intel_th_set_output() function,
the second assignment to hubdrv is
meaningless.

---
 drivers/hwtracing/intel_th/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwtracing/intel_th/core.c +1 -1
index cc7f879bb175..804c2f27b159 100644
@@ -1048,7 +1048,7 @@ int intel_th_set_output(struct intel_th_device *thdev,
 	 * hub is instantiated together with the source device that
 	 * calls here, so guaranteed to be present.
 	 */
-	hubdrv = to_intel_th_driver(hub->dev.driver);
+
 	if (!hubdrv || !try_module_get(hubdrv->driver.owner))
 		return -EINVAL;
 
Signature · 1 line
2.25.1