[Skiboot] [PATCH 4/4] secvar: fix Using plain integer as NULL pointer sparse warning

Stewart Smith stewart at flamingspork.com
Mon Sep 14 08:59:04 AEST 2020


Signed-off-by: Stewart Smith <stewart at flamingspork.com>
---
 libstb/secvar/secvar_devtree.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libstb/secvar/secvar_devtree.c b/libstb/secvar/secvar_devtree.c
index 998093f7..5085814f 100644
--- a/libstb/secvar/secvar_devtree.c
+++ b/libstb/secvar/secvar_devtree.c
@@ -22,7 +22,7 @@ int secvar_set_secure_mode(void)
 	if (prop)
 		return 0;
 
-	prop = dt_add_property(sb_root, "os-secureboot-enforcing", 0, 0);
+	prop = dt_add_property(sb_root, "os-secureboot-enforcing", NULL, 0);
 	if (!prop)
 		return -2;
 
-- 
2.26.2



More information about the Skiboot mailing list