[POWERPC] PS3: Checkpatch cleanups for drivers/ps3/ps3-vuart.c

Cleanup coding errors in drivers/ps3/ps3-vuart.c as reported by
checkpatch.

Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
Geert Uytterhoeven 2008-01-19 07:32:19 +11:00 committed by Paul Mackerras
parent eff56c92a1
commit d0e5c2185e

View file

@ -526,9 +526,8 @@ int ps3_vuart_write(struct ps3_system_bus_device *dev, const void *buf,
lb = kmalloc(sizeof(struct list_buffer) + bytes, GFP_KERNEL); lb = kmalloc(sizeof(struct list_buffer) + bytes, GFP_KERNEL);
if (!lb) { if (!lb)
return -ENOMEM; return -ENOMEM;
}
memcpy(lb->data, buf, bytes); memcpy(lb->data, buf, bytes);
lb->head = lb->data; lb->head = lb->data;
@ -926,9 +925,8 @@ static int ps3_vuart_bus_interrupt_get(void)
BUG_ON(vuart_bus_priv.use_count > 2); BUG_ON(vuart_bus_priv.use_count > 2);
if (vuart_bus_priv.use_count != 1) { if (vuart_bus_priv.use_count != 1)
return 0; return 0;
}
BUG_ON(vuart_bus_priv.bmp); BUG_ON(vuart_bus_priv.bmp);