]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0f1b8fb0ebdd0a4fad05a160b9159bbc128f1fba
tree5e2578ccaf0bf534f65e7998f8ac9ced7268001f
parentd68027e23521a16d3c9e391ae32114fb3c20982f
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