summaryrefslogtreecommitdiffstats
path: root/drivers/char/applicom.c
diff options
context:
space:
mode:
authorJason Wang <wangborong@cdjrlc.com>2021-12-12 08:18:38 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-12-21 10:14:08 +0100
commitcab00a3e5e5efabecdbfe9d54dc8d779b2e59be3 (patch)
tree6aea58744462dbcaea6bf0eae7f61d99ab0845f0 /drivers/char/applicom.c
parentuacce: use sysfs_emit instead of sprintf (diff)
downloadlinux-cab00a3e5e5efabecdbfe9d54dc8d779b2e59be3.tar.xz
linux-cab00a3e5e5efabecdbfe9d54dc8d779b2e59be3.zip
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. 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>
Diffstat (limited to 'drivers/char/applicom.c')
-rw-r--r--drivers/char/applicom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/applicom.c b/drivers/char/applicom.c
index deb85a334c93..36203d3fa6ea 100644
--- 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");