Signed-off-by: Alexey Dobriyan <[EMAIL PROTECTED]>

 drivers/usb/class/usblp.c       |    2 +-
 drivers/usb/core/devio.c        |    7 +++----
 drivers/usb/core/hcd.c          |    2 +-
 drivers/usb/core/hub.c          |    6 +++---
 drivers/usb/core/message.c      |    4 ++--
 drivers/usb/gadget/config.c     |    2 +-
 drivers/usb/gadget/epautoconf.c |    2 +-
 drivers/usb/gadget/ether.c      |    6 +++---
 drivers/usb/gadget/net2280.c    |    8 ++++----
 drivers/usb/host/ehci-hcd.c     |    5 +++--
 drivers/usb/host/ehci-mem.c     |   10 +++++-----
 drivers/usb/host/ehci-q.c       |   14 +++++++-------
 drivers/usb/host/ehci-sched.c   |   28 ++++++++++++++--------------
 drivers/usb/host/ohci-mem.c     |    2 +-
 drivers/usb/image/mdc800.c      |    4 ++--
 drivers/usb/input/hid-core.c    |    2 +-
 drivers/usb/misc/usbtest.c      |    4 ++--
 drivers/usb/net/usbnet.c        |    9 +++++----
 drivers/usb/serial/keyspan.c    |    6 +++---
 19 files changed, 62 insertions(+), 61 deletions(-)

Index: linux-2.6.10-bk11-warnings/drivers/usb/serial/keyspan.c
===================================================================
--- linux-2.6.10-bk11-warnings/drivers/usb/serial/keyspan.c     (revision 33)
+++ linux-2.6.10-bk11-warnings/drivers/usb/serial/keyspan.c     (revision 34)
@@ -374,7 +374,7 @@
                flip = p_priv->out_flip;
        
                /* Check we have a valid urb/endpoint before we use it... */
-               if ((this_urb = p_priv->out_urbs[flip]) == 0) {
+               if ((this_urb = p_priv->out_urbs[flip]) == NULL) {
                        /* no bulk out, so return 0 bytes written */
                        dbg("%s - no output urb :(", __FUNCTION__);
                        return count;
@@ -1020,11 +1020,11 @@
        flip = p_priv->out_flip;
 
        /* Check both endpoints to see if any are available. */
-       if ((this_urb = p_priv->out_urbs[flip]) != 0) {
+       if ((this_urb = p_priv->out_urbs[flip]) != NULL) {
                if (this_urb->status != -EINPROGRESS)
                        return (data_len);
                flip = (flip + 1) & d_details->outdat_endp_flip;        
-               if ((this_urb = p_priv->out_urbs[flip]) != 0) 
+               if ((this_urb = p_priv->out_urbs[flip]) != NULL) 
                        if (this_urb->status != -EINPROGRESS)
                                return (data_len);
        }
Index: linux-2.6.10-bk11-warnings/drivers/usb/image/mdc800.c
===================================================================
--- linux-2.6.10-bk11-warnings/drivers/usb/image/mdc800.c       (revision 33)
+++ linux-2.6.10-bk11-warnings/drivers/usb/image/mdc800.c       (revision 34)
@@ -421,7 +421,7 @@
        dbg ("(mdc800_usb_probe) called.");
 
 
-       if (mdc800->dev != 0)
+       if (mdc800->dev != NULL)
        {
                warn ("only one Mustek MDC800 is supported.");
                return -ENODEV;
@@ -1010,7 +1010,7 @@
 
 cleanup_on_fail:
 
-       if (mdc800 != 0)
+       if (mdc800 != NULL)
        {
                err ("can't alloc memory!");
 
Index: linux-2.6.10-bk11-warnings/drivers/usb/net/usbnet.c
===================================================================
--- linux-2.6.10-bk11-warnings/drivers/usb/net/usbnet.c (revision 33)
+++ linux-2.6.10-bk11-warnings/drivers/usb/net/usbnet.c (revision 34)
@@ -745,7 +745,7 @@
        dev->out = usb_sndbulkpipe(dev->udev, 2);
 
        // allocate irq urb
-       if ((data->int_urb = usb_alloc_urb (0, GFP_KERNEL)) == 0) {
+       if ((data->int_urb = usb_alloc_urb (0, GFP_KERNEL)) == NULL) {
                dbg ("%s: cannot allocate interrupt URB",
                        dev->net->name);
                return -ENOMEM;
@@ -2384,7 +2384,7 @@
 #endif
                size = (sizeof (struct ethhdr) + dev->net->mtu);
 
-       if ((skb = alloc_skb (size, flags)) == 0) {
+       if ((skb = alloc_skb (size, flags)) == NULL) {
                devdbg (dev, "no rx skb");
                defer_kevent (dev, EVENT_RX_MEMORY);
                usb_free_urb (urb);
@@ -2769,7 +2769,7 @@
                        urb = usb_alloc_urb (0, GFP_KERNEL);
                else
                        clear_bit (EVENT_RX_MEMORY, &dev->flags);
-               if (urb != 0) {
+               if (urb != NULL) {
                        clear_bit (EVENT_RX_MEMORY, &dev->flags);
                        rx_submit (dev, urb, GFP_KERNEL);
                        tasklet_schedule (&dev->bh);
@@ -2996,7 +2996,8 @@
 
                        // don't refill the queue all at once
                        for (i = 0; i < 10 && dev->rxq.qlen < qlen; i++) {
-                               if ((urb = usb_alloc_urb (0, GFP_ATOMIC)) != 0)
+                               urb = usb_alloc_urb (0, GFP_ATOMIC);
+                               if (urb != NULL)
                                        rx_submit (dev, urb, GFP_ATOMIC);
                        }
                        if (temp != dev->rxq.qlen)
Index: linux-2.6.10-bk11-warnings/drivers/usb/core/hcd.c
===================================================================
--- linux-2.6.10-bk11-warnings/drivers/usb/core/hcd.c   (revision 33)
+++ linux-2.6.10-bk11-warnings/drivers/usb/core/hcd.c   (revision 34)
@@ -526,7 +526,7 @@
        /* do nothing if the urb's been unlinked */
        if (!urb->dev
                        || urb->status != -EINPROGRESS
-                       || (hcd = urb->dev->bus->hcpriv) == 0) {
+                       || (hcd = urb->dev->bus->hcpriv) == NULL) {
                spin_unlock (&urb->lock);
                local_irq_restore (flags);
                return;
Index: linux-2.6.10-bk11-warnings/drivers/usb/core/devio.c
===================================================================
--- linux-2.6.10-bk11-warnings/drivers/usb/core/devio.c (revision 33)
+++ linux-2.6.10-bk11-warnings/drivers/usb/core/devio.c (revision 34)
@@ -1115,7 +1115,7 @@
        if (copy_from_user(&ctrl, arg, sizeof (ctrl)))
                return -EFAULT;
        if ((size = _IOC_SIZE (ctrl.ioctl_code)) > 0) {
-               if ((buf = kmalloc (size, GFP_KERNEL)) == 0)
+               if ((buf = kmalloc (size, GFP_KERNEL)) == NULL)
                        return -ENOMEM;
                if ((_IOC_DIR(ctrl.ioctl_code) & _IOC_WRITE)) {
                        if (copy_from_user (buf, ctrl.data, size)) {
@@ -1165,7 +1165,7 @@
                down_read(&usb_bus_type.subsys.rwsem);
                if (intf->dev.driver)
                        driver = to_usb_driver(intf->dev.driver);
-               if (driver == 0 || driver->ioctl == 0) {
+               if (driver == NULL || driver->ioctl == NULL) {
                        retval = -ENOTTY;
                } else {
                        retval = driver->ioctl (intf, ctrl.ioctl_code, buf);
@@ -1181,8 +1181,7 @@
                        && size > 0
                        && copy_to_user (ctrl.data, buf, size) != 0)
                retval = -EFAULT;
-       if (buf != 0)
-               kfree (buf);
+       kfree (buf);
        return retval;
 }
 
Index: linux-2.6.10-bk11-warnings/drivers/usb/core/hub.c
===================================================================
--- linux-2.6.10-bk11-warnings/drivers/usb/core/hub.c   (revision 33)
+++ linux-2.6.10-bk11-warnings/drivers/usb/core/hub.c   (revision 34)
@@ -389,7 +389,7 @@
         * since each TT has "at least two" buffers that can need it (and
         * there can be many TTs per hub).  even if they're uncommon.
         */
-       if ((clear = kmalloc (sizeof *clear, SLAB_ATOMIC)) == 0) {
+       if ((clear = kmalloc (sizeof *clear, SLAB_ATOMIC)) == NULL) {
                dev_err (&udev->dev, "can't save CLEAR_TT_BUFFER state\n");
                /* FIXME recover somehow ... RESET_TT? */
                return;
@@ -2272,7 +2272,7 @@
        int                             status;
 
        qual = kmalloc (sizeof *qual, SLAB_KERNEL);
-       if (qual == 0)
+       if (qual == NULL)
                return;
 
        status = usb_get_descriptor (udev, USB_DT_DEVICE_QUALIFIER, 0,
@@ -2797,7 +2797,7 @@
                        len = udev->config[index].desc.wTotalLength;
        }
        buf = kmalloc (len, SLAB_KERNEL);
-       if (buf == 0) {
+       if (buf == NULL) {
                dev_err(&udev->dev, "no mem to re-read configs after reset\n");
                /* assume the worst */
                return 1;
Index: linux-2.6.10-bk11-warnings/drivers/usb/core/message.c
===================================================================
--- linux-2.6.10-bk11-warnings/drivers/usb/core/message.c       (revision 33)
+++ linux-2.6.10-bk11-warnings/drivers/usb/core/message.c       (revision 34)
@@ -209,7 +209,7 @@
                kfree (io->urbs);
                io->urbs = NULL;
        }
-       if (io->dev->dev.dma_mask != 0)
+       if (io->dev->dev.dma_mask != NULL)
                usb_buffer_unmap_sg (io->dev, io->pipe, io->sg, io->nents);
        io->dev = NULL;
 }
@@ -334,7 +334,7 @@
        /* not all host controllers use DMA (like the mainstream pci ones);
         * they can use PIO (sl811) or be software over another transport.
         */
-       dma = (dev->dev.dma_mask != 0);
+       dma = (dev->dev.dma_mask != NULL);
        if (dma)
                io->entries = usb_buffer_map_sg (dev, pipe, sg, nents);
        else
Index: linux-2.6.10-bk11-warnings/drivers/usb/misc/usbtest.c
===================================================================
--- linux-2.6.10-bk11-warnings/drivers/usb/misc/usbtest.c       (revision 33)
+++ linux-2.6.10-bk11-warnings/drivers/usb/misc/usbtest.c       (revision 34)
@@ -1205,7 +1205,7 @@
        struct urb      *urb;
 
        urb = simple_alloc_urb (testdev_to_usbdev (dev), 0, 512);
-       if (urb == 0)
+       if (urb == NULL)
                return -ENOMEM;
 
        if (dev->in_pipe) {
@@ -1863,7 +1863,7 @@
        dev->intf = intf;
 
        /* cacheline-aligned scratch for i/o */
-       if ((dev->buf = kmalloc (TBUF_SIZE, SLAB_KERNEL)) == 0) {
+       if ((dev->buf = kmalloc (TBUF_SIZE, SLAB_KERNEL)) == NULL) {
                kfree (dev);
                return -ENOMEM;
        }
Index: linux-2.6.10-bk11-warnings/drivers/usb/gadget/net2280.c
===================================================================
--- linux-2.6.10-bk11-warnings/drivers/usb/gadget/net2280.c     (revision 33)
+++ linux-2.6.10-bk11-warnings/drivers/usb/gadget/net2280.c     (revision 34)
@@ -2155,7 +2155,7 @@
                return;
 
        /* manual DMA queue advance after short OUT */
-       if (likely (ep->dma != 0)) {
+       if (likely (ep->dma != NULL)) {
                if (t & (1 << SHORT_PACKET_TRANSFERRED_INTERRUPT)) {
                        u32     count;
                        int     stopped = ep->stopped;
@@ -2407,7 +2407,7 @@
                        /* hw handles device and interface status */
                        if (u.r.bRequestType != (USB_DIR_IN|USB_RECIP_ENDPOINT))
                                goto delegate;
-                       if ((e = get_ep_by_addr (dev, u.r.wIndex)) == 0
+                       if ((e = get_ep_by_addr (dev, u.r.wIndex)) == NULL
                                        || u.r.wLength > 2)
                                goto do_stall;
 
@@ -2435,7 +2435,7 @@
                        if (u.r.wValue != USB_ENDPOINT_HALT
                                        || u.r.wLength != 0)
                                goto do_stall;
-                       if ((e = get_ep_by_addr (dev, u.r.wIndex)) == 0)
+                       if ((e = get_ep_by_addr (dev, u.r.wIndex)) == NULL)
                                goto do_stall;
                        clear_halt (e);
                        allow_status (ep);
@@ -2452,7 +2452,7 @@
                        if (u.r.wValue != USB_ENDPOINT_HALT
                                        || u.r.wLength != 0)
                                goto do_stall;
-                       if ((e = get_ep_by_addr (dev, u.r.wIndex)) == 0)
+                       if ((e = get_ep_by_addr (dev, u.r.wIndex)) == NULL)
                                goto do_stall;
                        set_halt (e);
                        allow_status (ep);
Index: linux-2.6.10-bk11-warnings/drivers/usb/gadget/epautoconf.c
===================================================================
--- linux-2.6.10-bk11-warnings/drivers/usb/gadget/epautoconf.c  (revision 33)
+++ linux-2.6.10-bk11-warnings/drivers/usb/gadget/epautoconf.c  (revision 34)
@@ -68,7 +68,7 @@
        u16             max;
 
        /* endpoint already claimed? */
-       if (0 != ep->driver_data)
+       if (NULL != ep->driver_data)
                return 0;
                
        /* only support ep0 for portable CONTROL traffic */
Index: linux-2.6.10-bk11-warnings/drivers/usb/gadget/config.c
===================================================================
--- linux-2.6.10-bk11-warnings/drivers/usb/gadget/config.c      (revision 33)
+++ linux-2.6.10-bk11-warnings/drivers/usb/gadget/config.c      (revision 34)
@@ -49,7 +49,7 @@
                return -EINVAL;
 
        /* fill buffer from src[] until null descriptor ptr */
-       for (; 0 != *src; src++) {
+       for (; NULL != *src; src++) {
                unsigned                len = (*src)->bLength;
 
                if (len > buflen)
Index: linux-2.6.10-bk11-warnings/drivers/usb/gadget/ether.c
===================================================================
--- linux-2.6.10-bk11-warnings/drivers/usb/gadget/ether.c       (revision 33)
+++ linux-2.6.10-bk11-warnings/drivers/usb/gadget/ether.c       (revision 34)
@@ -1319,13 +1319,13 @@
 
        /* FIXME make these allocations static like dev->req */
        req = usb_ep_alloc_request (dev->status_ep, GFP_ATOMIC);
-       if (req == 0) {
+       if (req == NULL) {
                DEBUG (dev, "status ENOMEM\n");
                return;
        }
        req->buf = usb_ep_alloc_buffer (dev->status_ep, 16,
                                &dev->req->dma, GFP_ATOMIC);
-       if (req->buf == 0) {
+       if (req->buf == NULL) {
                DEBUG (dev, "status buf ENOMEM\n");
 free_req:
                usb_ep_free_request (dev->status_ep, req);
@@ -1762,7 +1762,7 @@
 #endif 
        size -= size % dev->out_ep->maxpacket;
 
-       if ((skb = alloc_skb (size, gfp_flags)) == 0) {
+       if ((skb = alloc_skb (size, gfp_flags)) == NULL) {
                DEBUG (dev, "no rx skb\n");
                goto enomem;
        }
Index: linux-2.6.10-bk11-warnings/drivers/usb/input/hid-core.c
===================================================================
--- linux-2.6.10-bk11-warnings/drivers/usb/input/hid-core.c     (revision 33)
+++ linux-2.6.10-bk11-warnings/drivers/usb/input/hid-core.c     (revision 34)
@@ -676,7 +676,7 @@
        parser->device = device;
 
        end = start + size;
-       while ((start = fetch_item(start, end, &item)) != 0) {
+       while ((start = fetch_item(start, end, &item)) != NULL) {
 
                if (item.format != HID_ITEM_FORMAT_SHORT) {
                        dbg("unexpected long global item");
Index: linux-2.6.10-bk11-warnings/drivers/usb/class/usblp.c
===================================================================
--- linux-2.6.10-bk11-warnings/drivers/usb/class/usblp.c        (revision 33)
+++ linux-2.6.10-bk11-warnings/drivers/usb/class/usblp.c        (revision 34)
@@ -1095,7 +1095,7 @@
                usblp->writebuf, 0,
                usblp_bulk_write, usblp);
 
-       usblp->bidir = (usblp->protocol[protocol].epread != 0);
+       usblp->bidir = (usblp->protocol[protocol].epread != NULL);
        if (usblp->bidir)
                usb_fill_bulk_urb(usblp->readurb, usblp->dev,
                        usb_rcvbulkpipe(usblp->dev,
Index: linux-2.6.10-bk11-warnings/drivers/usb/host/ohci-mem.c
===================================================================
--- linux-2.6.10-bk11-warnings/drivers/usb/host/ohci-mem.c      (revision 33)
+++ linux-2.6.10-bk11-warnings/drivers/usb/host/ohci-mem.c      (revision 34)
@@ -28,7 +28,7 @@
        struct ohci_hcd *ohci;
 
        ohci = (struct ohci_hcd *) kmalloc (sizeof *ohci, GFP_KERNEL);
-       if (ohci != 0) {
+       if (ohci != NULL) {
                memset (ohci, 0, sizeof (struct ohci_hcd));
                ohci->hcd.product_desc = "OHCI Host Controller";
                ohci->next_statechange = jiffies;
Index: linux-2.6.10-bk11-warnings/drivers/usb/host/ehci-hcd.c
===================================================================
--- linux-2.6.10-bk11-warnings/drivers/usb/host/ehci-hcd.c      (revision 33)
+++ linux-2.6.10-bk11-warnings/drivers/usb/host/ehci-hcd.c      (revision 34)
@@ -777,8 +777,9 @@
         * misplace IRQs, and should let us run completely without IRQs.
         * such lossage has been observed on both VT6202 and VT8235. 
         */
-       if (HCD_IS_RUNNING (ehci->hcd.state) && (ehci->async->qh_next.ptr != 0
-                       || ehci->periodic_sched != 0))
+       if (HCD_IS_RUNNING (ehci->hcd.state)
+               && (ehci->async->qh_next.ptr != NULL
+                   || ehci->periodic_sched != 0))
                timer_action (ehci, TIMER_IO_WATCHDOG);
 }
 
Index: linux-2.6.10-bk11-warnings/drivers/usb/host/ehci-q.c
===================================================================
--- linux-2.6.10-bk11-warnings/drivers/usb/host/ehci-q.c        (revision 33)
+++ linux-2.6.10-bk11-warnings/drivers/usb/host/ehci-q.c        (revision 34)
@@ -218,7 +218,7 @@
 __releases(ehci->lock)
 __acquires(ehci->lock)
 {
-       if (likely (urb->hcpriv != 0)) {
+       if (likely (urb->hcpriv != NULL)) {
                struct ehci_qh  *qh = (struct ehci_qh *) urb->hcpriv;
 
                /* S-mask in a QH means it's an interrupt urb */
@@ -405,7 +405,7 @@
        }
 
        /* last urb's completion might still need calling */
-       if (likely (last != 0)) {
+       if (likely (last != NULL)) {
                ehci_urb_done (ehci, last->urb, regs);
                count++;
                ehci_qtd_free (ehci, last);
@@ -861,7 +861,7 @@
                /* just one way to queue requests: swap with the dummy qtd.
                 * only hc or qh_refresh() ever modify the overlay.
                 */
-               if (likely (qtd != 0)) {
+               if (likely (qtd != NULL)) {
                        struct ehci_qtd         *dummy;
                        dma_addr_t              dma;
                        __le32                  token;
@@ -939,12 +939,12 @@
        /* Control/bulk operations through TTs don't need scheduling,
         * the HC and TT handle it when the TT has a buffer ready.
         */
-       if (likely (qh != 0)) {
+       if (likely (qh != NULL)) {
                if (likely (qh->qh_state == QH_STATE_IDLE))
                        qh_link_async (ehci, qh_get (qh));
        }
        spin_unlock_irqrestore (&ehci->lock, flags);
-       if (unlikely (qh == 0)) {
+       if (unlikely (qh == NULL)) {
                qtd_list_free (ehci, urb, qtd_list);
                return -ENOMEM;
        }
@@ -985,7 +985,7 @@
                 * active but idle for a while once it empties.
                 */
                if (HCD_IS_RUNNING (ehci->hcd.state)
-                               && ehci->async->qh_next.qh == 0)
+                               && ehci->async->qh_next.qh == NULL)
                        timer_action (ehci, TIMER_ASYNC_OFF);
        }
 
@@ -1066,7 +1066,7 @@
        timer_action_done (ehci, TIMER_ASYNC_SHRINK);
 rescan:
        qh = ehci->async->qh_next.qh;
-       if (likely (qh != 0)) {
+       if (likely (qh != NULL)) {
                do {
                        /* clean any finished work for this qh */
                        if (!list_empty (&qh->qtd_list)
Index: linux-2.6.10-bk11-warnings/drivers/usb/host/ehci-mem.c
===================================================================
--- linux-2.6.10-bk11-warnings/drivers/usb/host/ehci-mem.c      (revision 33)
+++ linux-2.6.10-bk11-warnings/drivers/usb/host/ehci-mem.c      (revision 34)
@@ -42,7 +42,7 @@
 
        ehci = (struct ehci_hcd *)
                kmalloc (sizeof (struct ehci_hcd), GFP_KERNEL);
-       if (ehci != 0) {
+       if (ehci != NULL) {
                memset (ehci, 0, sizeof (struct ehci_hcd));
                ehci->hcd.product_desc = "EHCI Host Controller";
                return &ehci->hcd;
@@ -70,7 +70,7 @@
        dma_addr_t              dma;
 
        qtd = dma_pool_alloc (ehci->qtd_pool, flags, &dma);
-       if (qtd != 0) {
+       if (qtd != NULL) {
                ehci_qtd_init (qtd, dma);
        }
        return qtd;
@@ -117,7 +117,7 @@
 
        /* dummy td enables safe urb queuing */
        qh->dummy = ehci_qtd_alloc (ehci, flags);
-       if (qh->dummy == 0) {
+       if (qh->dummy == NULL) {
                ehci_dbg (ehci, "no dummy td\n");
                dma_pool_free (ehci->qh_pool, qh, qh->qh_dma);
                qh = NULL;
@@ -234,7 +234,7 @@
                dma_alloc_coherent (ehci->hcd.self.controller,
                        ehci->periodic_size * sizeof(__le32),
                        &ehci->periodic_dma, 0);
-       if (ehci->periodic == 0) {
+       if (ehci->periodic == NULL) {
                goto fail;
        }
        for (i = 0; i < ehci->periodic_size; i++)
@@ -242,7 +242,7 @@
 
        /* software shadow of hardware table */
        ehci->pshadow = kmalloc (ehci->periodic_size * sizeof (void *), flags);
-       if (ehci->pshadow == 0) {
+       if (ehci->pshadow == NULL) {
                goto fail;
        }
        memset (ehci->pshadow, 0, ehci->periodic_size * sizeof (void *));
Index: linux-2.6.10-bk11-warnings/drivers/usb/host/ehci-sched.c
===================================================================
--- linux-2.6.10-bk11-warnings/drivers/usb/host/ehci-sched.c    (revision 33)
+++ linux-2.6.10-bk11-warnings/drivers/usb/host/ehci-sched.c    (revision 34)
@@ -496,7 +496,7 @@
                qh->period, qh, qh->usecs, qh->c_usecs,
                frame, uframe, qh->gap_uf);
        do {
-               if (unlikely (ehci->pshadow [frame].ptr != 0)) {
+               if (unlikely (ehci->pshadow [frame].ptr != NULL)) {
 
 // FIXME -- just link toward the end, before any qh with a shorter period,
 // AND accommodate it already having been linked here (after some other qh)
@@ -549,7 +549,7 @@
        /* get qh and force any scheduling errors */
        INIT_LIST_HEAD (&empty);
        qh = qh_append_tds (ehci, urb, &empty, epnum, &dev->ep [epnum]);
-       if (qh == 0) {
+       if (qh == NULL) {
                status = -ENOMEM;
                goto done;
        }
@@ -560,7 +560,7 @@
 
        /* then queue the urb's tds to the qh */
        qh = qh_append_tds (ehci, urb, qtd_list, epnum, &dev->ep [epnum]);
-       BUG_ON (qh == 0);
+       BUG_ON (qh == NULL);
 
        /* ... update usbfs periodic stats */
        hcd_to_bus (&ehci->hcd)->bandwidth_int_reqs++;
@@ -583,7 +583,7 @@
        struct ehci_iso_stream *stream;
 
        stream = kmalloc(sizeof *stream, mem_flags);
-       if (likely (stream != 0)) {
+       if (likely (stream != NULL)) {
                memset (stream, 0, sizeof(*stream));
                INIT_LIST_HEAD(&stream->td_list);
                INIT_LIST_HEAD(&stream->free_list);
@@ -738,7 +738,7 @@
 static inline struct ehci_iso_stream *
 iso_stream_get (struct ehci_iso_stream *stream)
 {
-       if (likely (stream != 0))
+       if (likely (stream != NULL))
                stream->refcount++;
        return stream;
 }
@@ -760,9 +760,9 @@
        dev = (struct hcd_dev *)urb->dev->hcpriv;
        stream = dev->ep [epnum];
 
-       if (unlikely (stream == 0)) {
+       if (unlikely (stream == NULL)) {
                stream = iso_stream_alloc(GFP_ATOMIC);
-               if (likely (stream != 0)) {
+               if (likely (stream != NULL)) {
                        /* dev->ep owns the initial refcount */
                        dev->ep[epnum] = stream;
                        iso_stream_init(stream, urb->dev, urb->pipe,
@@ -796,7 +796,7 @@
 
        size += packets * sizeof (struct ehci_iso_packet);
        iso_sched = kmalloc (size, mem_flags);
-       if (likely (iso_sched != 0)) {
+       if (likely (iso_sched != NULL)) {
                memset(iso_sched, 0, size);
                INIT_LIST_HEAD (&iso_sched->td_list);
        }
@@ -873,7 +873,7 @@
        unsigned long           flags;
 
        sched = iso_sched_alloc (urb->number_of_packets, mem_flags);
-       if (unlikely (sched == 0))
+       if (unlikely (sched == NULL))
                return -ENOMEM;
 
        itd_sched_init (sched, stream, urb);
@@ -907,7 +907,7 @@
                        spin_lock_irqsave (&ehci->lock, flags);
                }
 
-               if (unlikely (0 == itd)) {
+               if (unlikely (NULL == itd)) {
                        iso_sched_free (stream, sched);
                        spin_unlock_irqrestore (&ehci->lock, flags);
                        return -ENOMEM;
@@ -1362,7 +1362,7 @@
 
        /* Get iso_stream head */
        stream = iso_stream_find (ehci, urb);
-       if (unlikely (stream == 0)) {
+       if (unlikely (stream == NULL)) {
                ehci_dbg (ehci, "can't get iso stream\n");
                return -ENOMEM;
        }
@@ -1476,7 +1476,7 @@
        unsigned long           flags;
 
        iso_sched = iso_sched_alloc (urb->number_of_packets, mem_flags);
-       if (iso_sched == 0)
+       if (iso_sched == NULL)
                return -ENOMEM;
 
        sitd_sched_init (iso_sched, stream, urb);
@@ -1730,7 +1730,7 @@
 
        /* Get iso_stream head */
        stream = iso_stream_find (ehci, urb);
-       if (stream == 0) {
+       if (stream == NULL) {
                ehci_dbg (ehci, "can't get iso stream\n");
                return -ENOMEM;
        }
@@ -1835,7 +1835,7 @@
                type = Q_NEXT_TYPE (*hw_p);
                modified = 0;
 
-               while (q.ptr != 0) {
+               while (q.ptr != NULL) {
                        unsigned                uf;
                        union ehci_shadow       temp;
                        int                     live;


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to