The patch titled 0 -> NULL, drivers/usb/gadget/ has been removed from the -mm tree. Its filename was 0-null-drivers-usb-gadget.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ Subject: 0 -> NULL, drivers/usb/gadget/ From: Yoann Padioleau <padator@xxxxxxxxxx> When comparing a pointer, it's clearer to compare it to NULL than to 0. Here is the semantic patch: @@ expression *E; @@ E == - 0 + NULL @@ expression *E; @@ - 0 + NULL == E @@ expression *E; @@ E != - 0 + NULL @@ expression *E; @@ - 0 + NULL != E Signed-off-by: Yoann Padioleau <padator@xxxxxxxxxx> Cc: Greg KH <greg@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/usb/gadget/goku_udc.c | 2 +- drivers/usb/gadget/lh7a40x_udc.c | 2 +- drivers/usb/gadget/net2280.c | 8 ++++---- drivers/usb/gadget/pxa2xx_udc.c | 4 ++-- drivers/usb/gadget/pxa2xx_udc.h | 2 +- drivers/usb/gadget/s3c2410_udc.c | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff -puN drivers/usb/gadget/config.c~0-null-drivers-usb-gadget drivers/usb/gadget/config.c diff -puN drivers/usb/gadget/ether.c~0-null-drivers-usb-gadget drivers/usb/gadget/ether.c diff -puN drivers/usb/gadget/goku_udc.c~0-null-drivers-usb-gadget drivers/usb/gadget/goku_udc.c --- a/drivers/usb/gadget/goku_udc.c~0-null-drivers-usb-gadget +++ a/drivers/usb/gadget/goku_udc.c @@ -776,7 +776,7 @@ goku_queue(struct usb_ep *_ep, struct us } /* else pio or dma irq handler advances the queue. */ - if (likely(req != 0)) + if (likely(req != NULL)) list_add_tail(&req->queue, &ep->queue); if (likely(!list_empty(&ep->queue)) diff -puN drivers/usb/gadget/inode.c~0-null-drivers-usb-gadget drivers/usb/gadget/inode.c diff -puN drivers/usb/gadget/lh7a40x_udc.c~0-null-drivers-usb-gadget drivers/usb/gadget/lh7a40x_udc.c --- a/drivers/usb/gadget/lh7a40x_udc.c~0-null-drivers-usb-gadget +++ a/drivers/usb/gadget/lh7a40x_udc.c @@ -1202,7 +1202,7 @@ static int lh7a40x_queue(struct usb_ep * } /* pio or dma irq handler advances the queue. */ - if (likely(req != 0)) + if (likely(req != NULL)) list_add_tail(&req->queue, &ep->queue); spin_unlock_irqrestore(&dev->lock, flags); diff -puN drivers/usb/gadget/m66592-udc.c~0-null-drivers-usb-gadget drivers/usb/gadget/m66592-udc.c diff -puN drivers/usb/gadget/net2280.c~0-null-drivers-usb-gadget drivers/usb/gadget/net2280.c --- a/drivers/usb/gadget/net2280.c~0-null-drivers-usb-gadget +++ a/drivers/usb/gadget/net2280.c @@ -2120,7 +2120,7 @@ static void handle_ep_small (struct net2 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; @@ -2380,7 +2380,7 @@ static void handle_stat0_irqs (struct ne /* 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, w_index)) == 0 + if ((e = get_ep_by_addr (dev, w_index)) == NULL || w_length > 2) goto do_stall; @@ -2408,7 +2408,7 @@ static void handle_stat0_irqs (struct ne if (w_value != USB_ENDPOINT_HALT || w_length != 0) goto do_stall; - if ((e = get_ep_by_addr (dev, w_index)) == 0) + if ((e = get_ep_by_addr (dev, w_index)) == NULL) goto do_stall; clear_halt (e); allow_status (ep); @@ -2425,7 +2425,7 @@ static void handle_stat0_irqs (struct ne if (w_value != USB_ENDPOINT_HALT || w_length != 0) goto do_stall; - if ((e = get_ep_by_addr (dev, w_index)) == 0) + if ((e = get_ep_by_addr (dev, w_index)) == NULL) goto do_stall; set_halt (e); allow_status (ep); diff -puN drivers/usb/gadget/pxa2xx_udc.c~0-null-drivers-usb-gadget drivers/usb/gadget/pxa2xx_udc.c --- a/drivers/usb/gadget/pxa2xx_udc.c~0-null-drivers-usb-gadget +++ a/drivers/usb/gadget/pxa2xx_udc.c @@ -675,7 +675,7 @@ pxa2xx_ep_queue(struct usb_ep *_ep, stru /* kickstart this i/o queue? */ if (list_empty(&ep->queue) && !ep->stopped) { - if (ep->desc == 0 /* ep0 */) { + if (ep->desc == NULL /* ep0 */) { unsigned length = _req->length; switch (dev->ep0state) { @@ -729,7 +729,7 @@ pxa2xx_ep_queue(struct usb_ep *_ep, stru } /* pio or dma irq handler advances the queue. */ - if (likely (req != 0)) + if (likely (req != NULL)) list_add_tail(&req->queue, &ep->queue); local_irq_restore(flags); diff -puN drivers/usb/gadget/pxa2xx_udc.h~0-null-drivers-usb-gadget drivers/usb/gadget/pxa2xx_udc.h --- a/drivers/usb/gadget/pxa2xx_udc.h~0-null-drivers-usb-gadget +++ a/drivers/usb/gadget/pxa2xx_udc.h @@ -232,7 +232,7 @@ dump_state(struct pxa2xx_udc *dev) dev->stats.read.bytes, dev->stats.read.ops); for (i = 1; i < PXA_UDC_NUM_ENDPOINTS; i++) { - if (dev->ep [i].desc == 0) + if (dev->ep [i].desc == NULL) continue; DMSG ("udccs%d = %02x\n", i, *dev->ep->reg_udccs); } diff -puN drivers/usb/gadget/s3c2410_udc.c~0-null-drivers-usb-gadget drivers/usb/gadget/s3c2410_udc.c --- a/drivers/usb/gadget/s3c2410_udc.c~0-null-drivers-usb-gadget +++ a/drivers/usb/gadget/s3c2410_udc.c @@ -1294,7 +1294,7 @@ static int s3c2410_udc_queue(struct usb_ } /* pio or dma irq handler advances the queue. */ - if (likely (req != 0)) + if (likely (req != NULL)) list_add_tail(&req->queue, &ep->queue); local_irq_restore(flags); _ Patches currently in -mm which might be from padator@xxxxxxxxxx are origin.patch git-netdev-all.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html