]> git.baikalelectronics.ru Git - kernel.git/commit
apparmor: test: Remove some casts which are no-longer required
authorDavid Gow <davidgow@google.com>
Wed, 6 Jul 2022 10:06:07 +0000 (18:06 +0800)
committerJohn Johansen <john.johansen@canonical.com>
Sat, 9 Jul 2022 22:14:14 +0000 (15:14 -0700)
commite5eaafb08f42920b969ac6614d06fe40501a1929
treeab072ed9540b30e518e6ba546b33086828171b95
parent4921117c55fd1f54157069578da3bfe626d3baf1
apparmor: test: Remove some casts which are no-longer required

With some of the stricter type checking in KUnit's EXPECT macros
removed, several casts in policy_unpack_test are no longer required.

Remove the unnecessary casts, making the conditions clearer.

Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Acked-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: David Gow <davidgow@google.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/policy_unpack_test.c