Skip to contentSkip to conversation

applicom: unneed to initialise statics to 0

PATCH New Jason Wang 1 participant 1 message Dec 12, 2021 Char and misc drivers

lore
Share & tools
lore

Jason Wang

author
#0 lore raw

PATCH 1/1 applicom: unneed to initialise statics to 0

Static variables do not need to be initialised to 0, because compilers will initialise all uninitialised statics to 0. Thus, remove the unneeded initializations.

---
 drivers/char/applicom.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/char/applicom.c +2 -2
index deb85a334c93..36203d3fa6ea 100644
@@ -89,8 +89,8 @@ static struct applicom_board {
 	spinlock_t mutex;
 } apbs[MAX_BOARD];
 
-static unsigned int irq = 0;	/* interrupt number IRQ       */
-static unsigned long mem = 0;	/* physical segment of board  */
+static unsigned int irq;	/* interrupt number IRQ       */
+static unsigned long mem;	/* physical segment of board  */
 
 module_param_hw(irq, uint, irq, 0);
 MODULE_PARM_DESC(irq, "IRQ of the Applicom board");
Signature · 1 line
2.34.1