From: Adrian Bunk This patch fixes a check after use found by the Coverity checker. Signed-off-by: Adrian Bunk Signed-off-by: Antonino Daplas Signed-off-by: Andrew Morton --- drivers/video/console/fbcon.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletion(-) diff -puN drivers/video/console/fbcon.c~fbcon-fix-check-after-use drivers/video/console/fbcon.c --- 25/drivers/video/console/fbcon.c~fbcon-fix-check-after-use 2005-04-25 19:23:19.895984128 -0700 +++ 25-akpm/drivers/video/console/fbcon.c 2005-04-25 19:23:20.005967408 -0700 @@ -906,10 +906,13 @@ static void fbcon_init(struct vc_data *v struct vc_data *svc = *default_mode; struct display *t, *p = &fb_display[vc->vc_num]; int logo = 1, new_rows, new_cols, rows, cols, charcnt = 256; - int cap = info->flags; + int cap; if (info_idx == -1 || info == NULL) return; + + cap = info->flags; + if (vc != svc || logo_shown == FBCON_LOGO_DONTSHOW || (info->fix.type == FB_TYPE_TEXT)) logo = 0; _