From d2cbb15c40a3754ce6dd3936eb64968a54cc740c Mon Sep 17 00:00:00 2001 From: Michal Berger Date: Thu, 27 Aug 2020 11:52:26 +0200 Subject: [PATCH] scripts/common: Don't cache pci vendor,device ids separately On its own these values don't uniquely identify a particular pci device, hence there's no much point in storing them like so. Change-Id: Icc5cfec28fcccae6cd935dff03fe3ef01826edc4 Signed-off-by: Michal Berger Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3950 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins Reviewed-by: Tomasz Zawadzki Reviewed-by: Jim Harris --- scripts/common.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/scripts/common.sh b/scripts/common.sh index a70cfba0d..60de90080 100644 --- a/scripts/common.sh +++ b/scripts/common.sh @@ -49,8 +49,6 @@ cache_pci() { fi if [[ -n $vendor && -n $device ]]; then vendor=0x${vendor/0x/} device=0x${device/0x/} - pci_bus_cache["$vendor"]="${pci_bus_cache["$vendor"]:+${pci_bus_cache["$vendor"]} }$pci" - pci_bus_cache["$device"]="${pci_bus_cache["$device"]:+${pci_bus_cache["$device"]} }$pci" pci_bus_cache["$vendor:$device"]="${pci_bus_cache["$vendor:$device"]:+${pci_bus_cache["$vendor:$device"]} }$pci" pci_ids_vendor["$pci"]=$vendor