From: Georgiana Chelu Date: Fri, 22 Sep 2017 07:52:12 +0000 (-0700) Subject: Staging: irda: net: Do not initialise statics to NULL X-Git-Tag: v4.19~2226^2~281 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=43aac03aaac35343f6c9a0a9b8159bd1a7fcdeda;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/irda/net/irda_device.c b/drivers/staging/irda/net/irda_device.c index 890b90d0..3501478 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);