Commit eba2fb2d authored by Olaf Hering's avatar Olaf Hering Committed by Paul Mackerras

[PATCH] ppc64 boot: remove local initializers

Remove initialization of local variables.
They get all values assigned before use.
Signed-off-by: default avatarOlaf Hering <olh@suse.de>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent f7b99969
...@@ -34,35 +34,35 @@ void death(const char *msg, FILE *fdesc, const char *fname) ...@@ -34,35 +34,35 @@ void death(const char *msg, FILE *fdesc, const char *fname)
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
char inbuf[4096]; char inbuf[4096];
FILE *ramDisk = NULL; FILE *ramDisk;
FILE *sysmap = NULL; FILE *sysmap;
FILE *inputVmlinux = NULL; FILE *inputVmlinux;
FILE *outputVmlinux = NULL; FILE *outputVmlinux;
unsigned i = 0; unsigned i;
unsigned long ramFileLen = 0; unsigned long ramFileLen;
unsigned long ramLen = 0; unsigned long ramLen;
unsigned long roundR = 0; unsigned long roundR;
unsigned long sysmapFileLen = 0; unsigned long sysmapFileLen;
unsigned long sysmapLen = 0; unsigned long sysmapLen;
unsigned long sysmapPages = 0; unsigned long sysmapPages;
char* ptr_end = NULL; char *ptr_end;
unsigned long offset_end = 0; unsigned long offset_end;
unsigned long kernelLen = 0; unsigned long kernelLen;
unsigned long actualKernelLen = 0; unsigned long actualKernelLen;
unsigned long round = 0; unsigned long round;
unsigned long roundedKernelLen = 0; unsigned long roundedKernelLen;
unsigned long ramStartOffs = 0; unsigned long ramStartOffs;
unsigned long ramPages = 0; unsigned long ramPages;
unsigned long roundedKernelPages = 0; unsigned long roundedKernelPages;
unsigned long hvReleaseData = 0; unsigned long hvReleaseData;
u_int32_t eyeCatcher = 0xc8a5d9c4; u_int32_t eyeCatcher = 0xc8a5d9c4;
unsigned long naca = 0; unsigned long naca;
unsigned long xRamDisk = 0; unsigned long xRamDisk;
unsigned long xRamDiskSize = 0; unsigned long xRamDiskSize;
long padPages = 0; long padPages;
if (argc < 2) { if (argc < 2) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment