diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/serial/serial-uclass.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/serial/serial-uclass.c b/drivers/serial/serial-uclass.c index 6b41e0b7b0..8bea715b49 100644 --- 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) |