Skip to contentSkip to conversation

ptp: vmw: Drop ptp_vmw_acpi_device

PATCH Applied Rafael J. Wysocki 2 participants 2 messages May 12 – May 15

Subsystems (5)
lore
Share & tools
lore

Rafael J. Wysocki

author maintainer
#0 lore raw

PATCH 1/1 ptp: vmw: Drop ptp_vmw_acpi_device

From: "Rafael J. Wysocki" <[email protected]>

Static variable ptp_vmw_acpi_device in the ptp_vmw driver is assigned, but never used, so drop it.

No functional impact.

---
 drivers/ptp/ptp_vmw.c |    3 ---
 1 file changed, 3 deletions(-)
drivers/ptp/ptp_vmw.c +0 -3
@@ -18,7 +18,6 @@
 #define VMWARE_CMD_PCLK(nr) ((nr << 16) | 97)
 #define VMWARE_CMD_PCLK_GETTIME VMWARE_CMD_PCLK(0)
 
-static struct acpi_device *ptp_vmw_acpi_device;
 static struct ptp_clock *ptp_vmw_clock;
 
 
@@ -91,8 +90,6 @@ static int ptp_vmw_acpi_probe(struct pla
 		pr_err("failed to register ptp clock\n");
 		return PTR_ERR(ptp_vmw_clock);
 	}
-
-	ptp_vmw_acpi_device = ACPI_COMPANION(&pdev->dev);
 	return 0;
 }
 
#1 lore raw
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 8 lines · On Tue, 12 May 2026 18:41:45 +0200 you wrote:

From: "Rafael J. Wysocki" <[email protected]>

Static variable ptp_vmw_acpi_device in the ptp_vmw driver is assigned, but never used, so drop it.

No functional impact.

[...]

Here is the summary with links:
- [v1] ptp: vmw: Drop ptp_vmw_acpi_device

    https://git.kernel.org/netdev/net-next/c/f65d40643e42

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html