[PATCH 7/7] ppc64, cleanup: fix unused variable compile warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



../kexec/arch/ppc64/crashdump-ppc64.c: In function ?get_crash_memory_ranges?:
../kexec/arch/ppc64/crashdump-ppc64.c:186:6: warning: unused variable ?i? [-Wunused-variable]
  int i, n, crash_rng_len = 0;

Signed-off-by: C?dric Le Goater <clg at fr.ibm.com>
---
 kexec/arch/ppc64/crashdump-ppc64.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kexec/arch/ppc64/crashdump-ppc64.c b/kexec/arch/ppc64/crashdump-ppc64.c
index 71a09dbff17f..a3b56697c8db 100644
--- a/kexec/arch/ppc64/crashdump-ppc64.c
+++ b/kexec/arch/ppc64/crashdump-ppc64.c
@@ -184,7 +184,7 @@ static int get_crash_memory_ranges(struct memory_range **range, int *ranges)
 	DIR *dir, *dmem;
 	FILE *file;
 	struct dirent *dentry, *mentry;
-	int i, n, crash_rng_len = 0;
+	int n, crash_rng_len = 0;
 	unsigned long long start, end;
 	int page_size;
 
-- 
1.7.10.4




[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux