libct/specconv: use a local variable in CreateCgroupConfig()

Use r instead of spec.Linux.Resources to be consistent throughout
this code hunk.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
This commit is contained in:
Masahiro Yamada
2022-02-13 15:45:12 +09:00
parent 8d48ce2c69
commit 5222928650
+1 -1
View File
@@ -673,7 +673,7 @@ func CreateCgroupConfig(opts *CreateOpts, defaultDevs []*devices.Device) (*confi
if spec.Linux != nil {
r := spec.Linux.Resources
if r != nil {
for i, d := range spec.Linux.Resources.Devices {
for i, d := range r.Devices {
var (
t = "a"
major = int64(-1)