[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:
parent
eff56c92a1
commit
d0e5c2185e
1 changed files with 7 additions and 9 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue