summaryrefslogtreecommitdiff
path: root/src/usbh_driver_hub.c
diff options
context:
space:
mode:
authorAmir Hammad <amir.hammad@hotmail.com>2016-09-08 06:27:35 +0200
committerAmir Hammad <amir.hammad@hotmail.com>2016-09-11 13:31:47 +0200
commit1d1b697bc6b13b5db1594c3dafe5452b6b2c1668 (patch)
tree5bf0ea2ffbf6536ce67d3e5b26d2b65e7c6a69ce /src/usbh_driver_hub.c
parentbc8dd60b2ebc311427c751937df464ba58b12c42 (diff)
downloadsecure-hid-1d1b697bc6b13b5db1594c3dafe5452b6b2c1668.tar.gz
secure-hid-1d1b697bc6b13b5db1594c3dafe5452b6b2c1668.tar.bz2
secure-hid-1d1b697bc6b13b5db1594c3dafe5452b6b2c1668.zip
use NULL instead of 0 for assigning null pointer
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
Diffstat (limited to 'src/usbh_driver_hub.c')
-rw-r--r--src/usbh_driver_hub.c3
1 files changed, 2 insertions, 1 deletions
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 <stddef.h>
#include <stdint.h>
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) {