提交 9f8863eb 编写于 作者: M Markus Armbruster 提交者: Blue Swirl

fw_cfg: Drop a few superfluous initializers

Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
Reviewed-by: NLaszlo Ersek <lersek@redhat.com>
Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
上级 d09acb9b
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册