Remove useless variable end from checkprop() in kexec/arch/ppc64/fs2dt.c

end is never set to a non-zero value in checkprop(), and it only
has effect when non-zero, so remove it and code that it would trigger.

Signed-off-by: Simon Horman <[EMAIL PROTECTED]>
Index: kexec-tools-testing/kexec/arch/ppc64/fs2dt.c
===================================================================
--- kexec-tools-testing.orig/kexec/arch/ppc64/fs2dt.c   2006-12-08 
17:08:12.000000000 +0900
+++ kexec-tools-testing/kexec/arch/ppc64/fs2dt.c        2006-12-08 
17:08:44.000000000 +0900
@@ -88,9 +88,9 @@
 /* look for properties we need to reserve memory space for */
 static void checkprop(char *name, unsigned *data)
 {
-       static unsigned long long base, size, end;
+       static unsigned long long base, size;
 
-       if ((data == NULL) && (base || size || end))
+       if ((data == NULL) && (base || size))
                        err((void *)data, ERR_RESERVE);
        else if (!strcmp(name, "linux,rtas-base"))
                base = *data;
@@ -100,16 +100,10 @@
                        !strcmp(name, "linux,tce-size"))
                size = *data;
 
-       if (size && end)
-               err(name, ERR_RESERVE);
        if (base && size) {
                reserve(base, size);
                base = size = 0;
        }
-       if (base && end) {
-               reserve(base, end-base);
-               base = end = 0;
-       }
 }
 
 /*

--

-- 
Horms
  H: http://www.vergenet.net/~horms/
  W: http://www.valinux.co.jp/en/

_______________________________________________
fastboot mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/fastboot

Reply via email to