projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bac6446
)
dm: serial: remove unnecessary casting
author
Masahiro Yamada
<yamada.m@jp.panasonic.com>
Thu, 23 Oct 2014 13:26:07 +0000
(22:26 +0900)
committer
Simon Glass
<sjg@chromium.org>
Fri, 24 Oct 2014 03:43:08 +0000
(21:43 -0600)
The type (void *) can be directly passed to a function that
takes a specific pointer type.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Acked-by: Simon Glass <sjg@chromium.org>
drivers/serial/serial-uclass.c
patch
|
blob
|
history
diff --git
a/drivers/serial/serial-uclass.c
b/drivers/serial/serial-uclass.c
index 6b41e0b7b009d17d0d9d9b3208064746fb9143ff..8bea715b49fb7ffb45e36165dfccbd087f139e5f 100644
(file)
--- a/
drivers/serial/serial-uclass.c
+++ b/
drivers/serial/serial-uclass.c
@@
-149,9
+149,7
@@
void serial_stdio_init(void)
static void serial_stub_putc(struct stdio_dev *sdev, const char ch)
{
- struct udevice *dev = sdev->priv;
-
- serial_putc_dev(dev, ch);
+ serial_putc_dev(sdev->priv, ch);
}
void serial_stub_puts(struct stdio_dev *sdev, const char *str)
@@
-162,9
+160,7
@@
void serial_stub_puts(struct stdio_dev *sdev, const char *str)
int serial_stub_getc(struct stdio_dev *sdev)
{
- struct udevice *dev = sdev->priv;
-
- return serial_getc_dev(dev);
+ return serial_getc_dev(sdev->priv);
}
int serial_stub_tstc(struct stdio_dev *sdev)