habanalabs: use NULL for eventfd
authorOded Gabbay <ogabbay@kernel.org>
Wed, 11 May 2022 07:06:39 +0000 (10:06 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 22 May 2022 19:01:20 +0000 (21:01 +0200)
commit49d2a8af97a20d65d09ac85b57e525b32fdaa0e4
treeaa91b3f23f28eb03393f3953d437f5e9092e5fb4
parent368b0b4fd6971b63ab9eb0a969b5847755d09493
habanalabs: use NULL for eventfd

eventfd is pointer. As such, it should be initialized to NULL, not to 0.

In addition, no need to initialize it after creation because the
entire structure is zeroed-out. Also, no need to initialize it before
release because the entire structure is freed.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/habanalabs/common/device.c
drivers/misc/habanalabs/common/habanalabs_drv.c
drivers/misc/habanalabs/common/habanalabs_ioctl.c