From 1d1b697bc6b13b5db1594c3dafe5452b6b2c1668 Mon Sep 17 00:00:00 2001 From: Amir Hammad Date: Thu, 8 Sep 2016 06:27:35 +0200 Subject: use NULL instead of 0 for assigning null pointer Signed-off-by: Amir Hammad --- src/usbh_driver_hub.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/usbh_driver_hub.c') diff --git a/src/usbh_driver_hub.c b/src/usbh_driver_hub.c index 7dc99ea..2127158 100644 --- a/src/usbh_driver_hub.c +++ b/src/usbh_driver_hub.c @@ -25,6 +25,7 @@ #include "usart_helpers.h" #include "usbh_config.h" +#include #include static hub_device_t hub_device[USBH_MAX_HUBS]; @@ -52,7 +53,7 @@ static void *init(void *usbh_dev) } uint32_t i; - hub_device_t *drvdata = 0; + hub_device_t *drvdata = NULL; // find free data space for hub device for (i = 0; i < USBH_MAX_HUBS; i++) { if (hub_device[i].device[0] == 0) { -- cgit