summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2024-08-23 00:02:23 +0200
committerArthur Heymans <arthur@aheymans.xyz>2024-08-27 00:31:03 +0000
commit7a2cde9cead809f00162f090d7b79befc000452c (patch)
tree49a495ade68d8dbc95dcfa4bffce4026643f6b28 /src/drivers
parent338b5cd6da1d9b0e08d1c9fdb2520e415ae3f7f0 (diff)
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 <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/84041 Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nicholas Sudsgaard <devel+coreboot@nsudsgaard.com>
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/intel/gma/opregion.c2
1 files changed, 1 insertions, 1 deletions
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;
}