From 7a2cde9cead809f00162f090d7b79befc000452c Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Fri, 23 Aug 2024 00:02:23 +0200 Subject: drivers/intel/opregion.c: Also set vbt_size if size is 0 Make sure size vbt_size is initialized. GCC LTO warns about this. Change-Id: I4fcc6c02f898640e9b40d769e1165a4a0fb0fdf2 Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/c/coreboot/+/84041 Reviewed-by: Nico Huber Reviewed-by: Angel Pons Tested-by: build bot (Jenkins) Reviewed-by: Nicholas Sudsgaard --- src/drivers/intel/gma/opregion.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/drivers/intel/gma/opregion.c') diff --git a/src/drivers/intel/gma/opregion.c b/src/drivers/intel/gma/opregion.c index d5516389e5..f97d37350a 100644 --- a/src/drivers/intel/gma/opregion.c +++ b/src/drivers/intel/gma/opregion.c @@ -49,7 +49,7 @@ err: size = 0; out: - if (vbt_size && size) + if (vbt_size) *vbt_size = size; return data; } -- cgit v1.2.3