From 2f0b89e617e783fefac01642c2b0f82be31b424e Mon Sep 17 00:00:00 2001 From: Andrea Panattoni Date: Mon, 28 Mar 2022 19:23:07 +0200 Subject: [PATCH] Remove unused VfIds global variable --- api/v1/helper.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/api/v1/helper.go b/api/v1/helper.go index 99d44de5a..fbc09ac01 100644 --- a/api/v1/helper.go +++ b/api/v1/helper.go @@ -35,7 +35,6 @@ const invalidVfIndex = -1 var MANIFESTS_PATH = "./bindata/manifests/cni-config" var log = logf.Log.WithName("sriovnetwork") -var VfIds = []string{} // NicIdMap contains supported mapping of IDs with each in the format of: // Vendor ID, Physical Function Device ID, Virtual Function Device ID @@ -681,7 +680,6 @@ func NetFilterMatch(netFilter string, netValue string) (isMatch bool) { if netFilterResult == nil { logger.Info("Invalid NetFilter spec...", "netFilter", netFilter) - return false } @@ -689,7 +687,6 @@ func NetFilterMatch(netFilter string, netValue string) (isMatch bool) { if netValueResult == nil { logger.Info("Invalid netValue...", "netValue", netValue) - return false }