OSDN Git Service

fw_cfg: Drop a few superfluous initializers
authorMarkus Armbruster <armbru@redhat.com>
Wed, 23 Jan 2013 17:25:09 +0000 (18:25 +0100)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 26 Jan 2013 13:23:42 +0000 (13:23 +0000)
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/fw_cfg.c

index b7da5c7..bdcd836 100644 (file)
@@ -60,8 +60,8 @@ static char *read_splashfile(char *filename, size_t *file_sizep,
     GError *err = NULL;
     gboolean res;
     gchar *content;
-    int file_type = -1;
-    unsigned int filehead = 0;
+    int file_type;
+    unsigned int filehead;
     int bmp_bpp;
 
     res = g_file_get_contents(filename, &content, file_sizep, &err);
@@ -113,7 +113,7 @@ static void fw_cfg_bootsplash(FWCfgState *s)
     char *p;
     char *filename, *file_data;
     size_t file_size;
-    int file_type = -1;
+    int file_type;
     const char *temp;
 
     /* get user configuration */