aboutsummaryrefslogtreecommitdiff
path: root/hw/fw_cfg.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2013-01-23 18:25:09 +0100
committerBlue Swirl <blauwirbel@gmail.com>2013-01-26 13:23:42 +0000
commit9f8863ebd7f584762a906881a62a04ac05ce4898 (patch)
tree4ca4612268701836396c7e6c9f109965487b6e89 /hw/fw_cfg.c
parentd09acb9b5ef0bb4fa94d3d459919a6ebaf8804bc (diff)
downloadqemu-9f8863ebd7f584762a906881a62a04ac05ce4898.zip
qemu-9f8863ebd7f584762a906881a62a04ac05ce4898.tar.gz
qemu-9f8863ebd7f584762a906881a62a04ac05ce4898.tar.bz2
fw_cfg: Drop a few superfluous initializers
Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/fw_cfg.c')
-rw-r--r--hw/fw_cfg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/fw_cfg.c b/hw/fw_cfg.c
index b7da5c7..bdcd836 100644
--- a/hw/fw_cfg.c
+++ b/hw/fw_cfg.c
@@ -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 */