Commit 89952d13 authored by Al Viro's avatar Al Viro Committed by Linus Torvalds

[PATCH] misc NULL noise

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 0ae24bde
...@@ -112,7 +112,7 @@ static __always_inline void do_vgettimeofday(struct timeval * tv) ...@@ -112,7 +112,7 @@ static __always_inline void do_vgettimeofday(struct timeval * tv)
vread = __vsyscall_gtod_data.clock.vread; vread = __vsyscall_gtod_data.clock.vread;
if (unlikely(!__vsyscall_gtod_data.sysctl_enabled || !vread)) { if (unlikely(!__vsyscall_gtod_data.sysctl_enabled || !vread)) {
gettimeofday(tv,0); gettimeofday(tv,NULL);
return; return;
} }
now = vread(); now = vread();
......
...@@ -549,7 +549,7 @@ acpi_status acpi_ev_release_global_lock(void) ...@@ -549,7 +549,7 @@ acpi_status acpi_ev_release_global_lock(void)
acpi_gbl_global_lock_acquired = FALSE; acpi_gbl_global_lock_acquired = FALSE;
/* Release the local GL mutex */ /* Release the local GL mutex */
acpi_ev_global_lock_thread_id = 0; acpi_ev_global_lock_thread_id = NULL;
acpi_ev_global_lock_acquired = 0; acpi_ev_global_lock_acquired = 0;
acpi_os_release_mutex(acpi_gbl_global_lock_mutex); acpi_os_release_mutex(acpi_gbl_global_lock_mutex);
return_ACPI_STATUS(status); return_ACPI_STATUS(status);
......
...@@ -329,7 +329,7 @@ mpc52xx_ata_init_one(struct device *dev, struct mpc52xx_ata_priv *priv) ...@@ -329,7 +329,7 @@ mpc52xx_ata_init_one(struct device *dev, struct mpc52xx_ata_priv *priv)
ae->dev = dev; ae->dev = dev;
ae->irq = priv->ata_irq; ae->irq = priv->ata_irq;
aio->cmd_addr = 0; /* Don't have a classic reg block */ aio->cmd_addr = NULL; /* Don't have a classic reg block */
aio->altstatus_addr = &priv->ata_regs->tf_control; aio->altstatus_addr = &priv->ata_regs->tf_control;
aio->ctl_addr = &priv->ata_regs->tf_control; aio->ctl_addr = &priv->ata_regs->tf_control;
aio->data_addr = &priv->ata_regs->tf_data; aio->data_addr = &priv->ata_regs->tf_data;
......
...@@ -324,7 +324,7 @@ static int zf_ioctl(struct inode *inode, struct file *file, unsigned int cmd, ...@@ -324,7 +324,7 @@ static int zf_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
return put_user(0, p); return put_user(0, p);
case WDIOC_KEEPALIVE: case WDIOC_KEEPALIVE:
zf_ping(0); zf_ping(NULL);
break; break;
default: default:
......
...@@ -1248,10 +1248,10 @@ int pvr2_upload_firmware2(struct pvr2_hdw *hdw) ...@@ -1248,10 +1248,10 @@ int pvr2_upload_firmware2(struct pvr2_hdw *hdw)
ret |= pvr2_write_register(hdw, 0xaa18, 0x00840000); /*unknown*/ ret |= pvr2_write_register(hdw, 0xaa18, 0x00840000); /*unknown*/
LOCK_TAKE(hdw->ctl_lock); do { LOCK_TAKE(hdw->ctl_lock); do {
hdw->cmd_buffer[0] = FX2CMD_FWPOST1; hdw->cmd_buffer[0] = FX2CMD_FWPOST1;
ret |= pvr2_send_request(hdw,hdw->cmd_buffer,1,0,0); ret |= pvr2_send_request(hdw,hdw->cmd_buffer,1,NULL,0);
hdw->cmd_buffer[0] = FX2CMD_MEMSEL; hdw->cmd_buffer[0] = FX2CMD_MEMSEL;
hdw->cmd_buffer[1] = 0; hdw->cmd_buffer[1] = 0;
ret |= pvr2_send_request(hdw,hdw->cmd_buffer,2,0,0); ret |= pvr2_send_request(hdw,hdw->cmd_buffer,2,NULL,0);
} while (0); LOCK_GIVE(hdw->ctl_lock); } while (0); LOCK_GIVE(hdw->ctl_lock);
if (ret) { if (ret) {
...@@ -1320,7 +1320,7 @@ int pvr2_upload_firmware2(struct pvr2_hdw *hdw) ...@@ -1320,7 +1320,7 @@ int pvr2_upload_firmware2(struct pvr2_hdw *hdw)
LOCK_TAKE(hdw->ctl_lock); do { LOCK_TAKE(hdw->ctl_lock); do {
hdw->cmd_buffer[0] = FX2CMD_MEMSEL; hdw->cmd_buffer[0] = FX2CMD_MEMSEL;
hdw->cmd_buffer[1] = 0; hdw->cmd_buffer[1] = 0;
ret |= pvr2_send_request(hdw,hdw->cmd_buffer,2,0,0); ret |= pvr2_send_request(hdw,hdw->cmd_buffer,2,NULL,0);
} while (0); LOCK_GIVE(hdw->ctl_lock); } while (0); LOCK_GIVE(hdw->ctl_lock);
if (ret) { if (ret) {
......
...@@ -808,11 +808,11 @@ static void pvr2_v4l2_destroy_no_lock(struct pvr2_v4l2 *vp) ...@@ -808,11 +808,11 @@ static void pvr2_v4l2_destroy_no_lock(struct pvr2_v4l2 *vp)
{ {
if (vp->dev_video) { if (vp->dev_video) {
pvr2_v4l2_dev_destroy(vp->dev_video); pvr2_v4l2_dev_destroy(vp->dev_video);
vp->dev_video = 0; vp->dev_video = NULL;
} }
if (vp->dev_radio) { if (vp->dev_radio) {
pvr2_v4l2_dev_destroy(vp->dev_radio); pvr2_v4l2_dev_destroy(vp->dev_radio);
vp->dev_radio = 0; vp->dev_radio = NULL;
} }
pvr2_trace(PVR2_TRACE_STRUCT,"Destroying pvr2_v4l2 id=%p",vp); pvr2_trace(PVR2_TRACE_STRUCT,"Destroying pvr2_v4l2 id=%p",vp);
...@@ -1138,7 +1138,7 @@ static void pvr2_v4l2_dev_init(struct pvr2_v4l2_dev *dip, ...@@ -1138,7 +1138,7 @@ static void pvr2_v4l2_dev_init(struct pvr2_v4l2_dev *dip,
{ {
int mindevnum; int mindevnum;
int unit_number; int unit_number;
int *nr_ptr = 0; int *nr_ptr = NULL;
dip->v4lp = vp; dip->v4lp = vp;
......
...@@ -952,7 +952,7 @@ static int ps3_vuart_probe(struct device *_dev) ...@@ -952,7 +952,7 @@ static int ps3_vuart_probe(struct device *_dev)
kfree(dev->priv); kfree(dev->priv);
dev->priv = NULL; dev->priv = NULL;
fail_alloc: fail_alloc:
vuart_bus_priv.devices[port_number] = 0; vuart_bus_priv.devices[port_number] = NULL;
fail_match: fail_match:
up(&vuart_bus_priv.probe_mutex); up(&vuart_bus_priv.probe_mutex);
dev_dbg(&dev->core, "%s:%d failed\n", __func__, __LINE__); dev_dbg(&dev->core, "%s:%d failed\n", __func__, __LINE__);
...@@ -978,7 +978,7 @@ static int ps3_vuart_remove(struct device *_dev) ...@@ -978,7 +978,7 @@ static int ps3_vuart_remove(struct device *_dev)
dev_dbg(&dev->core, "%s:%d: %s no remove method\n", __func__, dev_dbg(&dev->core, "%s:%d: %s no remove method\n", __func__,
__LINE__, dev->core.bus_id); __LINE__, dev->core.bus_id);
vuart_bus_priv.devices[dev->priv->port_number] = 0; vuart_bus_priv.devices[dev->priv->port_number] = NULL;
if (--vuart_bus_priv.use_count == 0) { if (--vuart_bus_priv.use_count == 0) {
BUG(); BUG();
......
...@@ -65,13 +65,13 @@ static int progearbl_probe(struct platform_device *pdev) ...@@ -65,13 +65,13 @@ static int progearbl_probe(struct platform_device *pdev)
u8 temp; u8 temp;
struct backlight_device *progear_backlight_device; struct backlight_device *progear_backlight_device;
pmu_dev = pci_get_device(PCI_VENDOR_ID_AL, PCI_DEVICE_ID_AL_M7101, 0); pmu_dev = pci_get_device(PCI_VENDOR_ID_AL, PCI_DEVICE_ID_AL_M7101, NULL);
if (!pmu_dev) { if (!pmu_dev) {
printk("ALI M7101 PMU not found.\n"); printk("ALI M7101 PMU not found.\n");
return -ENODEV; return -ENODEV;
} }
sb_dev = pci_get_device(PCI_VENDOR_ID_AL, PCI_DEVICE_ID_AL_M1533, 0); sb_dev = pci_get_device(PCI_VENDOR_ID_AL, PCI_DEVICE_ID_AL_M1533, NULL);
if (!sb_dev) { if (!sb_dev) {
printk("ALI 1533 SB not found.\n"); printk("ALI 1533 SB not found.\n");
pci_dev_put(pmu_dev); pci_dev_put(pmu_dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment