selinux: avoid extra semicolon
authorChristian Göttsche <cgzones@googlemail.com>
Mon, 2 May 2022 14:10:51 +0000 (16:10 +0200)
committerPaul Moore <paul@paul-moore.com>
Tue, 3 May 2022 18:07:11 +0000 (14:07 -0400)
commit1d4e8036cb2b301842797d447164464896824c58
tree5e2578ccaf0bf534f65e7998f8ac9ced7268001f
parent759205151c09324dcdf788edc6fc6a5768523657
selinux: avoid extra semicolon

Wrap macro into `do { } while (0)` to avoid Clang emitting warnings
about extra semicolons.
Similar to userspace commit
https://github.com/SELinuxProject/selinux/commit/9d85aa60d12e468e7fd510c2b5475b5299b71622

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
[PM: whitespace/indenting tweaks]
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/ss/avtab.c