aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlaf Hering <olh@suse.de>2005-11-09 14:51:03 -0500
committerPaul Mackerras <paulus@samba.org>2005-11-09 19:25:19 -0500
commiteba2fb2dac93ed01a9f85b2f623b49a93bef3ed7 (patch)
tree3afa57e4250ba8393500a3b46a7c37f7beeaf70e
parentf7b9996990bccaa9f53cbea7aea8ab5355e7f10c (diff)
[PATCH] ppc64 boot: remove local initializers
Remove initialization of local variables. They get all values assigned before use. Signed-off-by: Olaf Hering <olh@suse.de> Signed-off-by: Paul Mackerras <paulus@samba.org>
-rw-r--r--arch/ppc64/boot/addRamDisk.c56
1 files changed, 28 insertions, 28 deletions
diff --git a/arch/ppc64/boot/addRamDisk.c b/arch/ppc64/boot/addRamDisk.c
index 7f2c09473394..c4e5de96142b 100644
--- a/arch/ppc64/boot/addRamDisk.c
+++ b/arch/ppc64/boot/addRamDisk.c
@@ -34,35 +34,35 @@ void death(const char *msg, FILE *fdesc, const char *fname)
34int main(int argc, char **argv) 34int main(int argc, char **argv)
35{ 35{
36 char inbuf[4096]; 36 char inbuf[4096];
37 FILE *ramDisk = NULL; 37 FILE *ramDisk;
38 FILE *sysmap = NULL; 38 FILE *sysmap;
39 FILE *inputVmlinux = NULL; 39 FILE *inputVmlinux;
40 FILE *outputVmlinux = NULL; 40 FILE *outputVmlinux;
41 41
42 unsigned i = 0; 42 unsigned i;
43 unsigned long ramFileLen = 0; 43 unsigned long ramFileLen;
44 unsigned long ramLen = 0; 44 unsigned long ramLen;
45 unsigned long roundR = 0; 45 unsigned long roundR;
46 46
47 unsigned long sysmapFileLen = 0; 47 unsigned long sysmapFileLen;
48 unsigned long sysmapLen = 0; 48 unsigned long sysmapLen;
49 unsigned long sysmapPages = 0; 49 unsigned long sysmapPages;
50 char* ptr_end = NULL; 50 char *ptr_end;
51 unsigned long offset_end = 0; 51 unsigned long offset_end;
52 52
53 unsigned long kernelLen = 0; 53 unsigned long kernelLen;
54 unsigned long actualKernelLen = 0; 54 unsigned long actualKernelLen;
55 unsigned long round = 0; 55 unsigned long round;
56 unsigned long roundedKernelLen = 0; 56 unsigned long roundedKernelLen;
57 unsigned long ramStartOffs = 0; 57 unsigned long ramStartOffs;
58 unsigned long ramPages = 0; 58 unsigned long ramPages;
59 unsigned long roundedKernelPages = 0; 59 unsigned long roundedKernelPages;
60 unsigned long hvReleaseData = 0; 60 unsigned long hvReleaseData;
61 u_int32_t eyeCatcher = 0xc8a5d9c4; 61 u_int32_t eyeCatcher = 0xc8a5d9c4;
62 unsigned long naca = 0; 62 unsigned long naca;
63 unsigned long xRamDisk = 0; 63 unsigned long xRamDisk;
64 unsigned long xRamDiskSize = 0; 64 unsigned long xRamDiskSize;
65 long padPages = 0; 65 long padPages;
66 66
67 67
68 if (argc < 2) { 68 if (argc < 2) {