From a4b3f7f0685708a8ccaf124f1edcd6ba6f3cc550 Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Thu, 26 Jul 2018 12:37:25 +0300 Subject: [PATCH] qat: fix formatting errors --- cmd/qat_plugin/qat_plugin.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/qat_plugin/qat_plugin.go b/cmd/qat_plugin/qat_plugin.go index 853e6284..408c8500 100644 --- a/cmd/qat_plugin/qat_plugin.go +++ b/cmd/qat_plugin/qat_plugin.go @@ -20,10 +20,10 @@ import ( "fmt" "io/ioutil" "os" + "path" "path/filepath" "strconv" "strings" - "path" "time" "github.com/golang/glog" @@ -153,7 +153,7 @@ func getDeviceID(pciAddr string) (string, error) { // bindDevice the device where id is the pci address to the specified device driver func bindDevice(dpdkDriver string, id string) error { - devicePCIAddr := "0000:"+id + devicePCIAddr := "0000:" + id unbindKernelDevicePath := path.Join(pciDeviceDir, devicePCIAddr, driverUnbindSuffix) bindDevicePath := path.Join(pciDriverDir, dpdkDriver, newIDSuffix) devicePCIAddrBytes := []byte(devicePCIAddr) @@ -330,7 +330,7 @@ func (dm *deviceManager) PreStartContainer(ctx context.Context, rqt *pluginapi.P func main() { flag.Parse() fmt.Println("QAT device plugin started") - + err := isValidDpdkDeviceDriver(*dpdkDriver) if err != nil { glog.Fatalf("Error in user input for DPDK Device Driver: %v", err)