Skip to content

Commit bfeb285

Browse files
Tetsuo Handagregkh
authored andcommitted
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: Tetsuo Handa <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent a27eb0c commit bfeb285

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

drivers/video/fbdev/core/fbcon.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,6 @@ static const struct consw fb_con;
163163

164164
#define advance_row(p, delta) (unsigned short *)((unsigned long)(p) + (delta) * vc->vc_size_row)
165165

166-
static int fbcon_set_origin(struct vc_data *);
167-
168166
static int fbcon_cursor_noblink;
169167

170168
#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)
26352633
}
26362634
}
26372635

2638-
static int fbcon_set_origin(struct vc_data *vc)
2639-
{
2640-
return 0;
2641-
}
2642-
26432636
void fbcon_suspended(struct fb_info *info)
26442637
{
26452638
struct vc_data *vc = NULL;
@@ -3110,7 +3103,6 @@ static const struct consw fb_con = {
31103103
.con_font_default = fbcon_set_def_font,
31113104
.con_font_copy = fbcon_copy_font,
31123105
.con_set_palette = fbcon_set_palette,
3113-
.con_set_origin = fbcon_set_origin,
31143106
.con_invert_region = fbcon_invert_region,
31153107
.con_screen_pos = fbcon_screen_pos,
31163108
.con_getxy = fbcon_getxy,

0 commit comments

Comments
 (0)