mm: remove unnecessary variable idx0 in __early_ioremap()
Subsystems (3)
PATCH 1/1 mm: remove unnecessary 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 <[email protected]>
--- arch/x86/mm/ioremap.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-)
arch/x86/mm/ioremap.c +2 -3
@@ -487,7 +487,7 @@ __early_ioremap(resource_size_t phys_addr, unsigned long size, pgprot_t prot)unsigned long offset;resource_size_t last_addr;unsigned int nrpages; -enum fixed_addresses idx0, idx; +enum fixed_addresses idx;int i, slot;WARN_ON (system_state !=SYSTEM_BOOTING );
@@ -540,8 +540,7 @@ __early_ioremap(resource_size_t phys_addr, unsigned long size, pgprot_t prot)/* * Ok, go for it.. */ - idx0 =FIX_BTMAP_BEGIN -NR_FIX_BTMAPS *slot; - idx = idx0; + idx =FIX_BTMAP_BEGIN -NR_FIX_BTMAPS *slot;while (nrpages >0 ) {early_set_fixmap (idx, phys_addr, prot); phys_addr +=PAGE_SIZE ;
Signature · 8 lines
1.7.1 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
tip-bot for Jianguo Wu
merge bot[tip:x86/mm] mm: Remove unused variable idx0 in __early_ioremap()
mm: Remove unused variable idx0 in __early_ioremap()
Commit-ID: d4f5228c01c130ff2c1f9240f1de22a5dfc61554 Gitweb: http://git.kernel.org/tip/d4f5228c01c130ff2c1f9240f1de22a5dfc61554 Author: Jianguo Wu <[email protected]> AuthorDate: Tue, 13 Aug 2013 11:01:07 +0800 Committer: Ingo Molnar <[email protected]> CommitDate: Tue, 13 Aug 2013 11:46:36 +0200
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 <[email protected]>
Cc Joonsoo Kim <[email protected]>
Cc <[email protected]>
Cc <[email protected]>
Cc Hanjun Guo <[email protected]>
Signed-off-by Ingo Molnar <[email protected]>
--- arch/x86/mm/ioremap.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
arch/x86/mm/ioremap.c +2 -3
@@ -487,7 +487,7 @@ __early_ioremap(resource_size_t phys_addr, unsigned long size, pgprot_t prot)unsigned long offset;resource_size_t last_addr;unsigned int nrpages; -enum fixed_addresses idx0, idx; +enum fixed_addresses idx;int i, slot;WARN_ON (system_state !=SYSTEM_BOOTING );
@@ -540,8 +540,7 @@ __early_ioremap(resource_size_t phys_addr, unsigned long size, pgprot_t prot)/* * Ok, go for it.. */ - idx0 =FIX_BTMAP_BEGIN -NR_FIX_BTMAPS *slot; - idx = idx0; + idx =FIX_BTMAP_BEGIN -NR_FIX_BTMAPS *slot;while (nrpages >0 ) {early_set_fixmap (idx, phys_addr, prot); phys_addr +=PAGE_SIZE ;
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>