aboutsummaryrefslogtreecommitdiff
path: root/lib/libusb/libusb20.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/libusb/libusb20.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/libusb/libusb20.c')
-rw-r--r--lib/libusb/libusb20.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libusb/libusb20.c b/lib/libusb/libusb20.c
index 1de3a265125a..2eb75f1c6d7c 100644
--- a/lib/libusb/libusb20.c
+++ b/lib/libusb/libusb20.c
@@ -139,8 +139,8 @@ libusb20_tr_close(struct libusb20_transfer *xfer)
free(xfer->ppBuffer);
}
/* reset variable fields in case the transfer is opened again */
- xfer->priv_sc0 = 0;
- xfer->priv_sc1 = 0;
+ xfer->priv_sc0 = NULL;
+ xfer->priv_sc1 = NULL;
xfer->is_opened = 0;
xfer->is_pending = 0;
xfer->is_cancel = 0;