[PATCH -next] ipe: Remove duplicated include in ipe.c

Yang Li posted 1 patch 1 year, 5 months ago
security/ipe/ipe.c | 1 -
1 file changed, 1 deletion(-)
[PATCH -next] ipe: Remove duplicated include in ipe.c
Posted by Yang Li 1 year, 5 months ago
The header files eval.h is included twice in ipe.c,
so one inclusion of each can be removed.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=9796
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
---
 security/ipe/ipe.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/security/ipe/ipe.c b/security/ipe/ipe.c
index e19a18078cf3..4317134cb0da 100644
--- a/security/ipe/ipe.c
+++ b/security/ipe/ipe.c
@@ -7,7 +7,6 @@
 #include "ipe.h"
 #include "eval.h"
 #include "hooks.h"
-#include "eval.h"
 
 extern const char *const ipe_boot_policy;
 bool ipe_enabled;
-- 
2.32.0.3.g01195cf9f
Re: [PATCH] ipe: Remove duplicated include in ipe.c
Posted by Paul Moore 1 year, 5 months ago
On Aug 21, 2024 Yang Li <yang.lee@linux.alibaba.com> wrote:
> 
> The header files eval.h is included twice in ipe.c,
> so one inclusion of each can be removed.
> 
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=9796
> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
> ---
>  security/ipe/ipe.c | 1 -
>  1 file changed, 1 deletion(-)

Looks good to me, merged into lsm/dev, thanks!

--
paul-moore.com