diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2007-03-14 10:17:59 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-03-14 23:27:49 +0100 |
commit | 89952d133dfbca785ae37b7da13699e4a5e1fa93 (patch) | |
tree | cd3abf4a0c4a6dd9c7fe6732b3a8a3f4ef6335dc /drivers/ps3 | |
parent | [PATCH] rtc-cmos needs RTC_ALWAYS_BCD known (diff) | |
download | linux-89952d133dfbca785ae37b7da13699e4a5e1fa93.tar.xz linux-89952d133dfbca785ae37b7da13699e4a5e1fa93.zip |
[PATCH] misc NULL noise
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/ps3')
-rw-r--r-- | drivers/ps3/vuart.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ps3/vuart.c b/drivers/ps3/vuart.c index 1adf186bfaf5..6c12744eeb9d 100644 --- a/drivers/ps3/vuart.c +++ b/drivers/ps3/vuart.c @@ -952,7 +952,7 @@ fail_alloc_irq: kfree(dev->priv); dev->priv = NULL; fail_alloc: - vuart_bus_priv.devices[port_number] = 0; + vuart_bus_priv.devices[port_number] = NULL; fail_match: up(&vuart_bus_priv.probe_mutex); dev_dbg(&dev->core, "%s:%d failed\n", __func__, __LINE__); @@ -978,7 +978,7 @@ static int ps3_vuart_remove(struct device *_dev) dev_dbg(&dev->core, "%s:%d: %s no remove method\n", __func__, __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) { BUG(); |