projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d2802f
)
applicom: unneed to initialise statics to 0
author
Jason Wang
<wangborong@cdjrlc.com>
Sun, 12 Dec 2021 07:18:38 +0000
(15:18 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 21 Dec 2021 09:14:08 +0000
(10:14 +0100)
Static variables do not need to be initialised to 0, because compilers
will initialise all uninitialised statics to 0. Thus, remove the
unneeded initializations.
Signed-off-by: Jason Wang <wangborong@cdjrlc.com>
Link:
https://lore.kernel.org/r/20211212071838.304307-1-wangborong@cdjrlc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/applicom.c
patch
|
blob
|
history
diff --git
a/drivers/char/applicom.c
b/drivers/char/applicom.c
index deb85a334c937506f68c80ecd235b42fdb567b44..36203d3fa6ea69428546231bf194dd5a262edab6 100644
(file)
--- a/
drivers/char/applicom.c
+++ b/
drivers/char/applicom.c
@@
-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");