Commit bfeb2853 authored by Tetsuo Handa's avatar Tetsuo Handa Committed by Greg Kroah-Hartman

fbcon: remove no-op fbcon_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: default avatarTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Link: https://lore.kernel.org/r/20200915000019.3422-3-penguin-kernel@I-love.SAKURA.ne.jpSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a27eb0cb
...@@ -163,8 +163,6 @@ static const struct consw fb_con; ...@@ -163,8 +163,6 @@ static const struct consw fb_con;
#define advance_row(p, delta) (unsigned short *)((unsigned long)(p) + (delta) * vc->vc_size_row) #define advance_row(p, delta) (unsigned short *)((unsigned long)(p) + (delta) * vc->vc_size_row)
static int fbcon_set_origin(struct vc_data *);
static int fbcon_cursor_noblink; static int fbcon_cursor_noblink;
#define divides(a, b) ((!(a) || (b)%(a)) ? 0 : 1) #define divides(a, b) ((!(a) || (b)%(a)) ? 0 : 1)
...@@ -2635,11 +2633,6 @@ static void fbcon_invert_region(struct vc_data *vc, u16 * p, int cnt) ...@@ -2635,11 +2633,6 @@ static void fbcon_invert_region(struct vc_data *vc, u16 * p, int cnt)
} }
} }
static int fbcon_set_origin(struct vc_data *vc)
{
return 0;
}
void fbcon_suspended(struct fb_info *info) void fbcon_suspended(struct fb_info *info)
{ {
struct vc_data *vc = NULL; struct vc_data *vc = NULL;
...@@ -3110,7 +3103,6 @@ static const struct consw fb_con = { ...@@ -3110,7 +3103,6 @@ static const struct consw fb_con = {
.con_font_default = fbcon_set_def_font, .con_font_default = fbcon_set_def_font,
.con_font_copy = fbcon_copy_font, .con_font_copy = fbcon_copy_font,
.con_set_palette = fbcon_set_palette, .con_set_palette = fbcon_set_palette,
.con_set_origin = fbcon_set_origin,
.con_invert_region = fbcon_invert_region, .con_invert_region = fbcon_invert_region,
.con_screen_pos = fbcon_screen_pos, .con_screen_pos = fbcon_screen_pos,
.con_getxy = fbcon_getxy, .con_getxy = fbcon_getxy,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment