@@ -156,7 +156,7 @@ static bool sticon_scroll(struct vc_data *conp, unsigned int t,
156
156
return false;
157
157
}
158
158
159
- static int sticon_set_def_font (int unit , struct console_font * op )
159
+ static void sticon_set_def_font (int unit )
160
160
{
161
161
if (font_data [unit ] != STI_DEF_FONT ) {
162
162
if (-- FNTREFCOUNT (font_data [unit ]) == 0 ) {
@@ -165,8 +165,6 @@ static int sticon_set_def_font(int unit, struct console_font *op)
165
165
}
166
166
font_data [unit ] = STI_DEF_FONT ;
167
167
}
168
-
169
- return 0 ;
170
168
}
171
169
172
170
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,
246
244
vc -> vc_video_erase_char , font_data [vc -> vc_num ]);
247
245
248
246
/* delete old font in case it is a user font */
249
- sticon_set_def_font (unit , NULL );
247
+ sticon_set_def_font (unit );
250
248
251
249
FNTREFCOUNT (cooked_font )++ ;
252
250
font_data [unit ] = cooked_font ;
@@ -264,7 +262,9 @@ static int sticon_set_font(struct vc_data *vc, struct console_font *op,
264
262
265
263
static int sticon_font_default (struct vc_data * vc , struct console_font * op , char * name )
266
264
{
267
- return sticon_set_def_font (vc -> vc_num , op );
265
+ sticon_set_def_font (vc -> vc_num );
266
+
267
+ return 0 ;
268
268
}
269
269
270
270
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)
297
297
298
298
/* free memory used by user font */
299
299
for (i = 0 ; i < MAX_NR_CONSOLES ; i ++ )
300
- sticon_set_def_font (i , NULL );
300
+ sticon_set_def_font (i );
301
301
}
302
302
303
303
static void sticon_clear (struct vc_data * conp , int sy , int sx , int height ,
0 commit comments