Commit 80d7ba30 authored by Jorge Lopez's avatar Jorge Lopez Committed by Hans de Goede

platform/x86: hp-bioscfg: Fix uninitialized variable errors

Fix uninitialized variable errors.
Signed-off-by: default avatarJorge Lopez <jorge.lopez2@hp.com>
Link: https://lore.kernel.org/r/20230731203141.30044-3-jorge.lopez2@hp.comReviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
parent 467d4163
......@@ -129,7 +129,7 @@ static int hp_populate_enumeration_elements_from_package(union acpi_object *enum
char *str_value = NULL;
int value_len;
u32 size = 0;
u32 int_value;
u32 int_value = 0;
int elem = 0;
int reqs;
int pos_values;
......
......@@ -143,7 +143,7 @@ static int hp_populate_integer_elements_from_package(union acpi_object *integer_
char *str_value = NULL;
int value_len;
int ret;
u32 int_value;
u32 int_value = 0;
int elem;
int reqs;
int eloc;
......
......@@ -131,10 +131,10 @@ static int hp_populate_ordered_list_elements_from_package(union acpi_object *ord
int instance_id)
{
char *str_value = NULL;
int value_len;
int value_len = 0;
int ret;
u32 size;
u32 int_value;
u32 int_value = 0;
int elem;
int reqs;
int eloc;
......
......@@ -227,7 +227,7 @@ static int hp_populate_password_elements_from_package(union acpi_object *passwor
int value_len;
int ret;
u32 size;
u32 int_value;
u32 int_value = 0;
int elem;
int reqs;
int eloc;
......
......@@ -133,7 +133,7 @@ static int hp_populate_string_elements_from_package(union acpi_object *string_ob
char *str_value = NULL;
int value_len;
int ret = 0;
u32 int_value;
u32 int_value = 0;
int elem;
int reqs;
int eloc;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment