From 4449acd30613600a4c76211cda641e3d5458869e Mon Sep 17 00:00:00 2001 From: rainrambler Date: Mon, 23 Jan 2017 14:37:16 +0800 Subject: [PATCH] using golang-style assignment using golang-style assignment, not the c-style Signed-off-by: Wang Anyu --- libcontainer/selinux/selinux.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libcontainer/selinux/selinux.go b/libcontainer/selinux/selinux.go index ee86b791..3d91e436 100644 --- a/libcontainer/selinux/selinux.go +++ b/libcontainer/selinux/selinux.go @@ -374,9 +374,7 @@ func uniqMcs(catRange uint32) string { continue } else { if c1 > c2 { - t := c1 - c1 = c2 - c2 = t + c1, c2 = c2, c1 } } mcs = fmt.Sprintf("s0:c%d,c%d", c1, c2)