diff options
| -rw-r--r-- | drivers/char/virtio_console.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c index 026ea6c27e07..48306bc733f7 100644 --- a/drivers/char/virtio_console.c +++ b/drivers/char/virtio_console.c | |||
| @@ -646,13 +646,13 @@ static int put_chars(u32 vtermno, const char *buf, int count) | |||
| 646 | { | 646 | { |
| 647 | struct port *port; | 647 | struct port *port; |
| 648 | 648 | ||
| 649 | if (unlikely(early_put_chars)) | ||
| 650 | return early_put_chars(vtermno, buf, count); | ||
| 651 | |||
| 649 | port = find_port_by_vtermno(vtermno); | 652 | port = find_port_by_vtermno(vtermno); |
| 650 | if (!port) | 653 | if (!port) |
| 651 | return 0; | 654 | return 0; |
| 652 | 655 | ||
| 653 | if (unlikely(early_put_chars)) | ||
| 654 | return early_put_chars(vtermno, buf, count); | ||
| 655 | |||
| 656 | return send_buf(port, (void *)buf, count); | 656 | return send_buf(port, (void *)buf, count); |
| 657 | } | 657 | } |
| 658 | 658 | ||
