diff --git a/cli/command/container/opts.go b/cli/command/container/opts.go index 4d21783d7c..f00c9126d0 100644 --- a/cli/command/container/opts.go +++ b/cli/command/container/opts.go @@ -925,8 +925,7 @@ func parseDevice(device, serverOS string) (container.DeviceMapping, error) { // parseLinuxDevice parses a device mapping string to a container.DeviceMapping struct // knowing that the target is a Linux daemon func parseLinuxDevice(device string) (container.DeviceMapping, error) { - src := "" - dst := "" + var src, dst string permissions := "rwm" arr := strings.Split(device, ":") switch len(arr) {