On Fri, Dec 04, 2020 at 16:31:03 +0100, Michal Privoznik wrote:
The AppArmorSetMemoryLabel() is a callback that is called from
qemuSecuritySetMemoryLabel() which never passes NULL as @mem.
Therefore, there is no need to check whether @mem is NULL. Also,
no other driver does that and just dereference it immediately.
Signed-off-by: Michal Privoznik <mprivozn(a)redhat.com>
---
src/security/security_apparmor.c | 3 ---
1 file changed, 3 deletions(-)
Reviewed-by: Peter Krempa <pkrempa(a)redhat.com>