dm: serial: remove unnecessary casting

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>
This commit is contained in:
Masahiro Yamada authored and Simon Glass committed 2014-10-23 21:43:08 -06:00
1 parent bac644675a
commit 52a0a6f0dc
1 file changed
+2 -6
+2 -6
View File
@@ -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)