Use "NULL" instead of "0" in pointer checks.

This commit is contained in:
tron 2002-12-18 14:12:33 +00:00
parent 0d95cc5d66
commit c4b584f5c4
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: umass.c,v 1.91 2002/12/06 03:57:51 erh Exp $ */
/* $NetBSD: umass.c,v 1.92 2002/12/18 14:12:33 tron Exp $ */
/*-
* Copyright (c) 1999 MAEKAWA Masahide <bishop@rr.iij4u.or.jp>,
* Nick Hibma <n_hibma@freebsd.org>
@ -94,7 +94,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: umass.c,v 1.91 2002/12/06 03:57:51 erh Exp $");
__KERNEL_RCSID(0, "$NetBSD: umass.c,v 1.92 2002/12/18 14:12:33 tron Exp $");
#include "atapibus.h"
#include "scsibus.h"
@ -500,7 +500,7 @@ USB_ATTACH(umass)
/* request a sufficient number of xfer handles */
for (i = 0; i < XFER_NR; i++) {
sc->transfer_xfer[i] = usbd_alloc_xfer(uaa->device);
if (sc->transfer_xfer[i] == 0) {
if (sc->transfer_xfer[i] == NULL) {
DPRINTF(UDMASS_USB, ("%s: Out of memory\n",
USBDEVNAME(sc->sc_dev)));
umass_disco(sc);