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. Signed-off-by: Colin Ian King <colin.i.king@xxxxxxxxx> --- drivers/hwtracing/intel_th/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwtracing/intel_th/core.c b/drivers/hwtracing/intel_th/core.c index 7e753a75d23b..f8fa0bd414fb 100644 --- a/drivers/hwtracing/intel_th/core.c +++ b/drivers/hwtracing/intel_th/core.c @@ -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. */ -- 2.34.1