diff options
author | Adrian Bunk <bunk@fs.tum.de> | 2005-05-01 11:59:23 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-01 11:59:23 -0400 |
commit | 306958e8e8d150b3e8bf13f66f3a6e9be7ee75ff (patch) | |
tree | 4bec649b9881cd59c248b78bbfa72ee3d88f14d0 | |
parent | 5f76be80d96f60adfc91f2acf22b146ce0e3072f (diff) |
[PATCH] fbcon: Fix check after use
This patch fixes a check after use found by the Coverity checker.
Signed-off-by: Adrian Bunk <bunk@fs.tum.de>
Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | drivers/video/console/fbcon.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c index 59e3b4b4e7e3..b209adbd508a 100644 --- a/drivers/video/console/fbcon.c +++ b/drivers/video/console/fbcon.c | |||
@@ -906,10 +906,13 @@ static void fbcon_init(struct vc_data *vc, int init) | |||
906 | struct vc_data *svc = *default_mode; | 906 | struct vc_data *svc = *default_mode; |
907 | struct display *t, *p = &fb_display[vc->vc_num]; | 907 | struct display *t, *p = &fb_display[vc->vc_num]; |
908 | int logo = 1, new_rows, new_cols, rows, cols, charcnt = 256; | 908 | int logo = 1, new_rows, new_cols, rows, cols, charcnt = 256; |
909 | int cap = info->flags; | 909 | int cap; |
910 | 910 | ||
911 | if (info_idx == -1 || info == NULL) | 911 | if (info_idx == -1 || info == NULL) |
912 | return; | 912 | return; |
913 | |||
914 | cap = info->flags; | ||
915 | |||
913 | if (vc != svc || logo_shown == FBCON_LOGO_DONTSHOW || | 916 | if (vc != svc || logo_shown == FBCON_LOGO_DONTSHOW || |
914 | (info->fix.type == FB_TYPE_TEXT)) | 917 | (info->fix.type == FB_TYPE_TEXT)) |
915 | logo = 0; | 918 | logo = 0; |