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

Dan Horák dan at danny.cz
Tue Dec 1 01:35:52 AEDT 2020


On Fri, 27 Nov 2020 18:52:08 +0530
Vasant Hegde <hegdevasant at linux.vnet.ibm.com> wrote:

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

LGTM

Reviewed-by: Dan Horák <dan at danny.cz>


		Dan

> 
> 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
> 
> _______________________________________________
> Skiboot mailing list
> Skiboot at lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/skiboot


More information about the Skiboot mailing list