aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/usb/net
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 /sys/dev/usb/net
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 'sys/dev/usb/net')
-rw-r--r--sys/dev/usb/net/if_urndis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/net/if_urndis.c b/sys/dev/usb/net/if_urndis.c
index 749f874c0d94..de7fd1e4b335 100644
--- a/sys/dev/usb/net/if_urndis.c
+++ b/sys/dev/usb/net/if_urndis.c
@@ -235,7 +235,7 @@ urndis_attach(device_t dev)
cmd = usbd_find_descriptor(uaa->device, NULL, uaa->info.bIfaceIndex,
UDESC_CS_INTERFACE, 0xFF, UDESCSUB_CDC_CM, 0xFF);
- if (cmd != 0) {
+ if (cmd != NULL) {
DPRINTF("Call Mode Descriptor found, dataif=%d\n", cmd->bDataInterface);
iface_index[0] = cmd->bDataInterface;
}