Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] ia64/hp NULL noise removal

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Al Viro and committed by
Linus Torvalds
cfa7fd72 ba46df98

+7 -7
+1 -1
arch/ia64/hp/sim/simeth.c
··· 87 87 */ 88 88 static struct notifier_block simeth_dev_notifier = { 89 89 simeth_device_event, 90 - 0 90 + NULL 91 91 }; 92 92 93 93
+1 -1
arch/ia64/hp/sim/simscsi.c
··· 103 103 104 104 while ((sc = queue[rd].sc) != 0) { 105 105 atomic_dec(&num_reqs); 106 - queue[rd].sc = 0; 106 + queue[rd].sc = NULL; 107 107 if (DBG) 108 108 printk("simscsi_interrupt: done with %ld\n", sc->serial_number); 109 109 (*sc->scsi_done)(sc);
+5 -5
arch/ia64/hp/sim/simserial.c
··· 92 92 { "ST16650V2", 32, UART_CLEAR_FIFO | UART_USE_FIFO | 93 93 UART_STARTECH }, 94 94 { "TI16750", 64, UART_CLEAR_FIFO | UART_USE_FIFO}, 95 - { 0, 0} 95 + { NULL, 0} 96 96 }; 97 97 98 98 struct tty_driver *hp_simserial_driver; ··· 555 555 556 556 if (info->xmit.buf) { 557 557 free_page((unsigned long) info->xmit.buf); 558 - info->xmit.buf = 0; 558 + info->xmit.buf = NULL; 559 559 } 560 560 561 561 if (info->tty) set_bit(TTY_IO_ERROR, &info->tty->flags); ··· 628 628 if (tty->driver->flush_buffer) tty->driver->flush_buffer(tty); 629 629 if (tty->ldisc.flush_buffer) tty->ldisc.flush_buffer(tty); 630 630 info->event = 0; 631 - info->tty = 0; 631 + info->tty = NULL; 632 632 if (info->blocked_open) { 633 633 if (info->close_delay) 634 634 schedule_timeout_interruptible(info->close_delay); ··· 668 668 info->event = 0; 669 669 state->count = 0; 670 670 info->flags &= ~ASYNC_NORMAL_ACTIVE; 671 - info->tty = 0; 671 + info->tty = NULL; 672 672 wake_up_interruptible(&info->open_wait); 673 673 } 674 674 ··· 769 769 /* 770 770 * Insert serial port into IRQ chain. 771 771 */ 772 - info->prev_port = 0; 772 + info->prev_port = NULL; 773 773 info->next_port = IRQ_ports[state->irq]; 774 774 if (info->next_port) 775 775 info->next_port->prev_port = info;