Skip to content

Commit

Permalink
Remove unused VfIds global variable
Browse files Browse the repository at this point in the history
  • Loading branch information
zeeke committed Mar 28, 2022
1 parent b876ce5 commit 2f0b89e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions api/v1/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -681,15 +680,13 @@ func NetFilterMatch(netFilter string, netValue string) (isMatch bool) {

if netFilterResult == nil {
logger.Info("Invalid NetFilter spec...", "netFilter", netFilter)

return false
}

netValueResult := re.FindAllStringSubmatch(netValue, -1)

if netValueResult == nil {
logger.Info("Invalid netValue...", "netValue", netValue)

return false
}

Expand Down

0 comments on commit 2f0b89e

Please sign in to comment.