From a925ad257b8102b741a69c0b01c6192d0edd4924 Mon Sep 17 00:00:00 2001 From: Sunyanan Choochotkaew Date: Thu, 12 Feb 2026 17:15:27 +0900 Subject: [PATCH] DRA: Optimize SharedDeviceID.GetDeviceID function Signed-off-by: Sunyanan Choochotkaew --- .../structured/schedulerapi/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/staging/src/k8s.io/dynamic-resource-allocation/structured/schedulerapi/types.go b/staging/src/k8s.io/dynamic-resource-allocation/structured/schedulerapi/types.go index a30424a8b1d..8e06e886ec1 100644 --- a/staging/src/k8s.io/dynamic-resource-allocation/structured/schedulerapi/types.go +++ b/staging/src/k8s.io/dynamic-resource-allocation/structured/schedulerapi/types.go @@ -59,7 +59,7 @@ func (d SharedDeviceID) String() string { } func (d SharedDeviceID) GetDeviceID() DeviceID { - return MakeDeviceID(d.Driver.String(), d.Pool.String(), d.Device.String()) + return DeviceID{d.Driver, d.Pool, d.Device} } // MakeSharedDeviceID creates a new SharedDeviceID from a DeviceID and share ID.