summaryrefslogtreecommitdiff
path: root/drivers/staging/irda
diff options
context:
space:
mode:
authorGeorgiana Chelu <georgiana.chelu93@gmail.com>2017-09-22 00:52:12 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-09-22 10:53:45 +0200
commit43aac03aaac35343f6c9a0a9b8159bd1a7fcdeda (patch)
tree194ea7a2fbabc699214431748a55f67d971f9b38 /drivers/staging/irda
parenta050fe5ceb94524cf20afe62f1ee9f8438aff463 (diff)
Staging: irda: net: Do not initialise statics to NULL
There is no need to initialize static variables to NULL because they are stored in .bss segment. This segment is initialized to 0 at the beginning of the code execution. Issue found by checkpatch.pl. ERROR: do not initialise statics to NULL Signed-off-by: Georgiana Chelu <georgiana.chelu93@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/irda')
-rw-r--r--drivers/staging/irda/net/irda_device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/irda/net/irda_device.c b/drivers/staging/irda/net/irda_device.c
index 890b90d055d5..35014782f949 100644
--- a/drivers/staging/irda/net/irda_device.c
+++ b/drivers/staging/irda/net/irda_device.c
@@ -54,8 +54,8 @@
static void __irda_task_delete(struct irda_task *task);
-static hashbin_t *dongles = NULL;
-static hashbin_t *tasks = NULL;
+static hashbin_t *dongles;
+static hashbin_t *tasks;
static void irda_task_timer_expired(void *data);