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>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
17b2720b11
commit
1b0ec88ac1
@@ -579,7 +579,7 @@ static void fn_scroll_forw(struct vc_data *vc)
|
||||
|
||||
static void fn_scroll_back(struct vc_data *vc)
|
||||
{
|
||||
scrollback(vc, 0);
|
||||
scrollback(vc);
|
||||
}
|
||||
|
||||
static void fn_show_mem(struct vc_data *vc)
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user