Thread (4 messages) 4 messages, 4 authors, 28d ago

RE: [Intel-wired-lan] [PATCH net-next] net: e100: remove redundant static variable initializations

From: Loktionov, Aleksandr <hidden>
Date: 2026-05-22 06:58:49
Also in: intel-wired-lan, lkml

quoted hunk ↗ jump to hunk
-----Original Message-----
From: Intel-wired-lan <redacted> On Behalf
Of Ashwin Gundarapu via Intel-wired-lan
Sent: Friday, May 22, 2026 8:53 AM
To: Nguyen, Anthony L <anthony.l.nguyen@intel.com>; Kitszel,
Przemyslaw [off-list ref]; andrewnetdev
[off-list ref]; davem [off-list ref]; edumazet
[off-list ref]; kuba [off-list ref]; pabeni
[off-list ref]
Cc: intel-wired-lan <redacted>; netdev
[off-list ref]; linux-kernel [off-list ref]
Subject: [Intel-wired-lan] [PATCH net-next] net: e100: remove
redundant static variable initializations


From: Ashwin Gundarapu <redacted>
Date: Fri, 22 May 2026 12:20:23 +0530
Subject: [PATCH] net: e100: remove redundant static variable
initializations

Remove '= 0' from static variables eeprom_bad_csum_allow and use_io.
Static variables are zero-initialized by default.

Found by checkpatch.pl

Signed-off-by: Ashwin Gundarapu <redacted>
---
 drivers/net/ethernet/intel/e100.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/intel/e100.c
b/drivers/net/ethernet/intel/e100.c
index bfacf877ca40..bdddd4315cbb 100644
--- a/drivers/net/ethernet/intel/e100.c
+++ b/drivers/net/ethernet/intel/e100.c
@@ -167,8 +167,8 @@ MODULE_FIRMWARE(FIRMWARE_D101S);
MODULE_FIRMWARE(FIRMWARE_D102E);

 static int debug = 3;
-static int eeprom_bad_csum_allow = 0;
-static int use_io = 0;
+static int eeprom_bad_csum_allow;
+static int use_io;
 module_param(debug, int, 0);
 module_param(eeprom_bad_csum_allow, int, 0444);  module_param(use_io,
int, 0444);
--
2.43.0
Reviewed-by: Aleksandr Loktionov <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help