mirror of
https://github.com/torvalds/linux.git
synced 2024-11-14 16:12:02 +00:00
newport_con: remove no-op newport_set_origin()
We don't need to call vc->vc_sw->con_set_origin() from set_origin() if it is no-op. Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Link: https://lore.kernel.org/r/20200915000019.3422-1-penguin-kernel@I-love.SAKURA.ne.jp Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a4ced376fe
commit
1b24f46925
@ -678,11 +678,6 @@ static bool newport_scroll(struct vc_data *vc, unsigned int t, unsigned int b,
|
||||
return true;
|
||||
}
|
||||
|
||||
static int newport_set_origin(struct vc_data *vc)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void newport_save_screen(struct vc_data *vc) { }
|
||||
|
||||
const struct consw newport_con = {
|
||||
@ -699,7 +694,6 @@ const struct consw newport_con = {
|
||||
.con_blank = newport_blank,
|
||||
.con_font_set = newport_font_set,
|
||||
.con_font_default = newport_font_default,
|
||||
.con_set_origin = newport_set_origin,
|
||||
.con_save_screen = newport_save_screen
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user