qat: fix formatting errors

This commit is contained in:
Ed Bartosh 2018-07-26 12:37:25 +03:00
parent b864ec01da
commit a4b3f7f068

View File

@ -20,10 +20,10 @@ import (
"fmt" "fmt"
"io/ioutil" "io/ioutil"
"os" "os"
"path"
"path/filepath" "path/filepath"
"strconv" "strconv"
"strings" "strings"
"path"
"time" "time"
"github.com/golang/glog" "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 // bindDevice the device where id is the pci address to the specified device driver
func bindDevice(dpdkDriver string, id string) error { func bindDevice(dpdkDriver string, id string) error {
devicePCIAddr := "0000:"+id devicePCIAddr := "0000:" + id
unbindKernelDevicePath := path.Join(pciDeviceDir, devicePCIAddr, driverUnbindSuffix) unbindKernelDevicePath := path.Join(pciDeviceDir, devicePCIAddr, driverUnbindSuffix)
bindDevicePath := path.Join(pciDriverDir, dpdkDriver, newIDSuffix) bindDevicePath := path.Join(pciDriverDir, dpdkDriver, newIDSuffix)
devicePCIAddrBytes := []byte(devicePCIAddr) devicePCIAddrBytes := []byte(devicePCIAddr)