diff options
author | Jiri Slaby <jslaby@suse.cz> | 2016-06-23 14:34:23 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-06-25 19:04:48 +0300 |
commit | 1b0ec88ac1cb0413a717bc3cefea72d6f2533672 (patch) | |
tree | 96d1b2f774f5575b7de57b6a8efebfa63d9f27a1 /drivers/tty/vt/vt.c | |
parent | 17b2720b114cc95b2b7c8c0f5cfa20e44e1f5912 (diff) | |
download | linux-1b0ec88ac1cb0413a717bc3cefea72d6f2533672.tar.xz |
vt: remove lines parameter from scrollback
It is always called with 0, so remove the parameter and pass the
default down to scrolldelta without checking.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/vt/vt.c')
-rw-r--r-- | drivers/tty/vt/vt.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c index dc125322f48f..abc79ae19079 100644 --- a/drivers/tty/vt/vt.c +++ b/drivers/tty/vt/vt.c @@ -1102,11 +1102,9 @@ static void gotoxay(struct vc_data *vc, int new_x, int new_y) gotoxy(vc, new_x, vc->vc_decom ? (vc->vc_top + new_y) : new_y); } -void scrollback(struct vc_data *vc, int lines) +void scrollback(struct vc_data *vc) { - if (!lines) - lines = vc->vc_rows / 2; - scrolldelta(-lines); + scrolldelta(-(vc->vc_rows / 2)); } void scrollfront(struct vc_data *vc, int lines) |