0004-mips-remove-unused-variable.patch 1003 B

123456789101112131415161718192021222324252627282930
  1. From 904e9ae892b0592c916a013869e3be3d830e0155 Mon Sep 17 00:00:00 2001
  2. From: Yousong Zhou <yszhou4tech@gmail.com>
  3. Date: Mon, 9 Feb 2015 20:11:04 +0800
  4. Subject: [PATCH 4/5] mips: remove unused variable.
  5. Fixes the following compilation warning.
  6. kexec/arch/mips/crashdump-mips.c:151:6: warning: unused variable 'i' [-Wunused-variable]
  7. Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
  8. ---
  9. kexec/arch/mips/crashdump-mips.c | 2 +-
  10. 1 file changed, 1 insertion(+), 1 deletion(-)
  11. diff --git a/kexec/arch/mips/crashdump-mips.c b/kexec/arch/mips/crashdump-mips.c
  12. index 98c9f7c..dc68cb4 100644
  13. --- a/kexec/arch/mips/crashdump-mips.c
  14. +++ b/kexec/arch/mips/crashdump-mips.c
  15. @@ -148,7 +148,7 @@ static int exclude_crash_reserve_region(int *nr_ranges)
  16. static int get_crash_memory_ranges(struct memory_range **range, int *ranges)
  17. {
  18. const char iomem[] = "/proc/iomem";
  19. - int i, memory_ranges = 0;
  20. + int memory_ranges = 0;
  21. char line[MAX_LINE];
  22. FILE *fp;
  23. unsigned long long start, end;
  24. --
  25. 1.7.10.4