diff --git a/sysfs/class_fibrechannel.go b/sysfs/class_fibrechannel.go index 9aac783d..7b571a45 100644 --- a/sysfs/class_fibrechannel.go +++ b/sysfs/class_fibrechannel.go @@ -153,12 +153,10 @@ func parseFibreChannelStatistics(hostPath string) (*FibreChannelCounters, error) var counters FibreChannelCounters path := filepath.Join(hostPath, "statistics") - if _, err := os.Stat(path); os.IsNotExist(err) { fmt.Printf("Directory %s does not exist, skipping.\n", path) return &counters, nil } - files, err := os.ReadDir(path) if err != nil { return nil, err