[Skiboot] [PATCH trivial] hdata: Replace hardcoded string with macro

Vasant Hegde hegdevasant at linux.vnet.ibm.com
Sat Nov 28 00:22:08 AEDT 2020


Signed-off-by: Vasant Hegde <hegdevasant at linux.vnet.ibm.com>
---
 hdata/tpmrel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hdata/tpmrel.c b/hdata/tpmrel.c
index 8e36d3da3..4be3f81c4 100644
--- a/hdata/tpmrel.c
+++ b/hdata/tpmrel.c
@@ -209,7 +209,7 @@ void node_stb_parse(void)
 {
 	struct HDIF_common_hdr *hdif_hdr;
 
-	hdif_hdr = get_hdif(&spira.ntuples.node_stb_data, "TPMREL");
+	hdif_hdr = get_hdif(&spira.ntuples.node_stb_data, STB_HDIF_SIG);
 	if (!hdif_hdr) {
 		prlog(PR_DEBUG, "TPMREL data not found\n");
 		return;
-- 
2.26.2



More information about the Skiboot mailing list