diff options
author | Jianguo Wu <wujianguo@huawei.com> | 2013-08-12 23:01:07 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2013-08-13 05:46:36 -0400 |
commit | d4f5228c01c130ff2c1f9240f1de22a5dfc61554 (patch) | |
tree | 2d25e85bbbe53028c991c5c168c0f6dddf8656f4 /arch/x86 | |
parent | a0842b704b0f7c2d925473676f2012ea5dc39976 (diff) |
mm: Remove unused variable idx0 in __early_ioremap()
After commit:
8827247ffcc ("x86: don't define __this_fixmap_does_not_exist()")
variable idx0 is no longer needed, so just remove it.
Signed-off-by: Jianguo Wu <wujianguo@huawei.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: <linux-mm@kvack.org>
Cc: <wangchen@cn.fujitsu.com>
Cc: Hanjun Guo <guohanjun@huawei.com>
Link: http://lkml.kernel.org/r/5209A173.3090600@huawei.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/mm/ioremap.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/x86/mm/ioremap.c b/arch/x86/mm/ioremap.c index 0215e2c563ef..799580cabc78 100644 --- a/arch/x86/mm/ioremap.c +++ b/arch/x86/mm/ioremap.c | |||
@@ -487,7 +487,7 @@ __early_ioremap(resource_size_t phys_addr, unsigned long size, pgprot_t prot) | |||
487 | unsigned long offset; | 487 | unsigned long offset; |
488 | resource_size_t last_addr; | 488 | resource_size_t last_addr; |
489 | unsigned int nrpages; | 489 | unsigned int nrpages; |
490 | enum fixed_addresses idx0, idx; | 490 | enum fixed_addresses idx; |
491 | int i, slot; | 491 | int i, slot; |
492 | 492 | ||
493 | WARN_ON(system_state != SYSTEM_BOOTING); | 493 | WARN_ON(system_state != SYSTEM_BOOTING); |
@@ -540,8 +540,7 @@ __early_ioremap(resource_size_t phys_addr, unsigned long size, pgprot_t prot) | |||
540 | /* | 540 | /* |
541 | * Ok, go for it.. | 541 | * Ok, go for it.. |
542 | */ | 542 | */ |
543 | idx0 = FIX_BTMAP_BEGIN - NR_FIX_BTMAPS*slot; | 543 | idx = FIX_BTMAP_BEGIN - NR_FIX_BTMAPS*slot; |
544 | idx = idx0; | ||
545 | while (nrpages > 0) { | 544 | while (nrpages > 0) { |
546 | early_set_fixmap(idx, phys_addr, prot); | 545 | early_set_fixmap(idx, phys_addr, prot); |
547 | phys_addr += PAGE_SIZE; | 546 | phys_addr += PAGE_SIZE; |