aboutsummaryrefslogtreecommitdiff
path: root/lib/libusbhid/descr.c
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2016-04-09 20:36:07 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2016-04-09 20:36:07 +0000
commit2bf493863feef6ec0033f3f18d8abcb0a105d963 (patch)
treea64fc1c28ce33890150327ef2cfc4c0ca17f72b3 /lib/libusbhid/descr.c
parenteaee150e3fa55f875321dac94e76403ad4c978e1 (diff)
downloadsrc-2bf493863feef6ec0033f3f18d8abcb0a105d963.tar.gz
src-2bf493863feef6ec0033f3f18d8abcb0a105d963.zip
USB: replace 0 with NULL for pointers.
Found with devel/coccinelle. Reviewed by: hselasky
Notes
Notes: svn path=/head/; revision=297764
Diffstat (limited to 'lib/libusbhid/descr.c')
-rw-r--r--lib/libusbhid/descr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libusbhid/descr.c b/lib/libusbhid/descr.c
index 0c6634236635..4ca9dd795d09 100644
--- a/lib/libusbhid/descr.c
+++ b/lib/libusbhid/descr.c
@@ -159,7 +159,7 @@ hid_use_report_desc(unsigned char *data, unsigned int size)
report_desc_t r;
r = malloc(sizeof(*r) + size);
- if (r == 0) {
+ if (r == NULL) {
errno = ENOMEM;
return (NULL);
}