Skip to contentSkip to conversation

nds32: fix semicolon code style issue

PATCH In review Yang Wei 2 participants 2 messages Mar 4, 2019 – Mar 6, 2019

lore
Share & tools
lore

Yang Wei

author
#0 lore raw

PATCH 1/1 nds32: fix semicolon code style issue

From: Yang Wei <[email protected]>

Delete superfluous semicolons.

---
 arch/nds32/kernel/cacheinfo.c | 2 +-
 arch/nds32/mm/init.c          | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/nds32/kernel/cacheinfo.c +1 -1
index 0a7bc69..aab98e4 100644
@@ -13,7 +13,7 @@ static void ci_leaf_init(struct cacheinfo *this_leaf,
 	this_leaf->level = level;
 	this_leaf->type = type;
 	this_leaf->coherency_line_size = CACHE_LINE_SIZE(cache_type);
-	this_leaf->number_of_sets = CACHE_SET(cache_type);;
+	this_leaf->number_of_sets = CACHE_SET(cache_type);
 	this_leaf->ways_of_associativity = CACHE_WAY(cache_type);
 	this_leaf->size = this_leaf->number_of_sets *
 	    this_leaf->coherency_line_size * this_leaf->ways_of_associativity;
arch/nds32/mm/init.c +1 -1
index 253f79f..e2eb4eb 100644
@@ -264,7 +264,7 @@ void __set_fixmap(enum fixed_addresses idx,
 
 	BUG_ON(idx <= FIX_HOLE || idx >= __end_of_fixed_addresses);
 
-	pte = (pte_t *)&fixmap_pmd_p[pte_index(addr)];;
+	pte = (pte_t *)&fixmap_pmd_p[pte_index(addr)];
 
 	if (pgprot_val(flags)) {
 		set_pte(pte, pfn_pte(phys >> PAGE_SHIFT, flags));
Signature · 1 line
2.7.4
Acked-by on v1 1/1
#1 lore raw

Yang Wei <[email protected]> 於 2019年3月4日 週一 下午10:33寫道:

Quoted 29 lines

From: Yang Wei <[email protected]>

Delete superfluous semicolons.

---
 arch/nds32/kernel/cacheinfo.c | 2 +-
 arch/nds32/mm/init.c          | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/nds32/kernel/cacheinfo.c +1 -1
index 0a7bc69..aab98e4 100644
@@ -13,7 +13,7 @@ static void ci_leaf_init(struct cacheinfo *this_leaf,
        this_leaf->level = level;
        this_leaf->type = type;
        this_leaf->coherency_line_size = CACHE_LINE_SIZE(cache_type);
-       this_leaf->number_of_sets = CACHE_SET(cache_type);;
+       this_leaf->number_of_sets = CACHE_SET(cache_type);
        this_leaf->ways_of_associativity = CACHE_WAY(cache_type);
        this_leaf->size = this_leaf->number_of_sets *
            this_leaf->coherency_line_size * this_leaf->ways_of_associativity;
arch/nds32/mm/init.c +0 -0
index 253f79f..e2eb4eb 100644

arch/nds32/mm/init.c void __set_fixmap(enum fixed_addresses idx, · line 270

Quoted 8 lines
arch/nds32/mm/init.c +1 -1
@@ -264,7 +264,7 @@ void __set_fixmap(enum fixed_addresses idx,
 
        BUG_ON(idx <= FIX_HOLE || idx >= __end_of_fixed_addresses);
 
-       pte = (pte_t *)&fixmap_pmd_p[pte_index(addr)];;
+       pte = (pte_t *)&fixmap_pmd_p[pte_index(addr)];
 
        if (pgprot_val(flags)) {
                set_pte(pte, pfn_pte(phys >> PAGE_SHIFT, flags));

Thank you, Yang Wei.