[PATCH] misc NULL noise
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
+2
-2
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user