Skip to content

Commit 4f2ba39

Browse files
Jiri Slaby (SUSE)hdeller
authored andcommitted
sticon: make sticon_set_def_font() void and remove op parameter
sticon_set_def_font() always returns 0, so make it void. And remove an unused 'op' parameter. Signed-off-by: "Jiri Slaby (SUSE)" <[email protected]> Cc: "James E.J. Bottomley" <[email protected]> Cc: Helge Deller <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Signed-off-by: Helge Deller <[email protected]>
1 parent 1023ca1 commit 4f2ba39

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

drivers/video/console/sticon.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ static bool sticon_scroll(struct vc_data *conp, unsigned int t,
156156
return false;
157157
}
158158

159-
static int sticon_set_def_font(int unit, struct console_font *op)
159+
static void sticon_set_def_font(int unit)
160160
{
161161
if (font_data[unit] != STI_DEF_FONT) {
162162
if (--FNTREFCOUNT(font_data[unit]) == 0) {
@@ -165,8 +165,6 @@ static int sticon_set_def_font(int unit, struct console_font *op)
165165
}
166166
font_data[unit] = STI_DEF_FONT;
167167
}
168-
169-
return 0;
170168
}
171169

172170
static int sticon_set_font(struct vc_data *vc, struct console_font *op,
@@ -246,7 +244,7 @@ static int sticon_set_font(struct vc_data *vc, struct console_font *op,
246244
vc->vc_video_erase_char, font_data[vc->vc_num]);
247245

248246
/* delete old font in case it is a user font */
249-
sticon_set_def_font(unit, NULL);
247+
sticon_set_def_font(unit);
250248

251249
FNTREFCOUNT(cooked_font)++;
252250
font_data[unit] = cooked_font;
@@ -264,7 +262,9 @@ static int sticon_set_font(struct vc_data *vc, struct console_font *op,
264262

265263
static int sticon_font_default(struct vc_data *vc, struct console_font *op, char *name)
266264
{
267-
return sticon_set_def_font(vc->vc_num, op);
265+
sticon_set_def_font(vc->vc_num);
266+
267+
return 0;
268268
}
269269

270270
static int sticon_font_set(struct vc_data *vc, struct console_font *font,
@@ -297,7 +297,7 @@ static void sticon_deinit(struct vc_data *c)
297297

298298
/* free memory used by user font */
299299
for (i = 0; i < MAX_NR_CONSOLES; i++)
300-
sticon_set_def_font(i, NULL);
300+
sticon_set_def_font(i);
301301
}
302302

303303
static void sticon_clear(struct vc_data *conp, int sy, int sx, int height,

0 commit comments

Comments
 (0)