Skip to contentSkip to conversation

ACPICA: drop unneeded initialization value

PATCH In review Sohaib Mohamed 2 participants 2 messages Oct 6, 2021 – Oct 7, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ACPICA: drop unneeded initialization value

Do not initialise statics to 0

---
 drivers/acpi/acpica/dbhistry.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/acpi/acpica/dbhistry.c +3 -3
index fd813c5d3952..60b77b11c0f2 100644
@@ -24,9 +24,9 @@ typedef struct history_info {
 } HISTORY_INFO;
 
 static HISTORY_INFO acpi_gbl_history_buffer[HISTORY_SIZE];
-static u16 acpi_gbl_lo_history = 0;
-static u16 acpi_gbl_num_history = 0;
-static u16 acpi_gbl_next_history_index = 0;
+static u16 acpi_gbl_lo_history;
+static u16 acpi_gbl_num_history;
+static u16 acpi_gbl_next_history_index;
 
 /*******************************************************************************
  *
Signature · 1 line
2.25.1
#1 lore raw
Quoted 16 lines · Sohaib Mohamed

Do not initialise statics to 0

Signed-off-by Sohaib Mohamed <sohaib.amhmd(a)gmail.com>
---
 drivers/acpi/acpica/dbhistry.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/acpi/acpica/dbhistry.c +0 -0
index fd813c5d3952..60b77b11c0f2 100644
@@ -24,9 +24,9 @@ typedef struct history_info {
 } HISTORY_INFO;
 
 static HISTORY_INFO acpi_gbl_history_buffer[HISTORY_SIZE];

drivers/acpi/acpica/dbhistry.c typedef struct history_info {

Quoted 10 lines
drivers/acpi/acpica/dbhistry.c +3 -4
-static u16 acpi_gbl_lo_history = 0;
-static u16 acpi_gbl_num_history = 0;
-static u16 acpi_gbl_next_history_index = 0;
+static u16 acpi_gbl_lo_history;
+static u16 acpi_gbl_num_history;
+static u16 acpi_gbl_next_history_index;
 
 /*******************************************************************************
  *
--

Please submit ACPICA changes like this to the upstream ACPICA project as per MAINTANIERS.

Thanks!