Skip to contentSkip to conversation

intel_th: remove redundant early initialization of pointer hubdrv

PATCH New Colin Ian King 1 participant 1 message Feb 7, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 intel_th: remove redundant early initialization of pointer hubdrv

Pointer hubdrv is being initialized with a value that is never read, it is being re-assigned the same value later on closer to where it is being first used. The initialization is redundant and can be removed.

---
 drivers/hwtracing/intel_th/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwtracing/intel_th/core.c +1 -1
index 7e753a75d23b..f8fa0bd414fb 100644
@@ -1037,7 +1037,7 @@ int intel_th_set_output(struct intel_th_device *thdev,
 			unsigned int master)
 {
 	struct intel_th_device *hub = to_intel_th_hub(thdev);
-	struct intel_th_driver *hubdrv = to_intel_th_driver(hub->dev.driver);
+	struct intel_th_driver *hubdrv;
 	int ret;
 
 	/* In host mode, this is up to the external debugger, do nothing. */
Signature · 1 line
2.34.1