mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH][next] intel_th: remove redundant early initialization of pointer hubdrv
@ 2022-02-07 13:47 Colin Ian King
  0 siblings, 0 replies; only message in thread
From: Colin Ian King @ 2022-02-07 13:47 UTC (permalink / raw)
  To: Alexander Shishkin; +Cc: kernel-janitors, linux-kernel

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@gmail.com>
---
 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-02-07 13:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-07 13:47 [PATCH][next] intel_th: remove redundant early initialization of pointer hubdrv Colin Ian King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®