linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] nds32: fix semicolon code style issue
@ 2019-03-04 14:33 Yang Wei
  2019-03-06  2:36 ` Greentime Hu
  0 siblings, 1 reply; 2+ messages in thread
From: Yang Wei @ 2019-03-04 14:33 UTC (permalink / raw)
  To: linux-kernel
  Cc: green.hu, deanbo422, f.fainelli, rppt, akpm, yang.wei9, albin_yang

From: Yang Wei <yang.wei9@zte.com.cn>

Delete superfluous semicolons.

Signed-off-by: Yang Wei <yang.wei9@zte.com.cn>
---
 arch/nds32/kernel/cacheinfo.c | 2 +-
 arch/nds32/mm/init.c          | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/nds32/kernel/cacheinfo.c b/arch/nds32/kernel/cacheinfo.c
index 0a7bc69..aab98e4 100644
--- a/arch/nds32/kernel/cacheinfo.c
+++ b/arch/nds32/kernel/cacheinfo.c
@@ -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;
diff --git a/arch/nds32/mm/init.c b/arch/nds32/mm/init.c
index 253f79f..e2eb4eb 100644
--- a/arch/nds32/mm/init.c
+++ b/arch/nds32/mm/init.c
@@ -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));
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] nds32: fix semicolon code style issue
  2019-03-04 14:33 [PATCH] nds32: fix semicolon code style issue Yang Wei
@ 2019-03-06  2:36 ` Greentime Hu
  0 siblings, 0 replies; 2+ messages in thread
From: Greentime Hu @ 2019-03-06  2:36 UTC (permalink / raw)
  To: Yang Wei
  Cc: Linux Kernel Mailing List, Vincent Chen, Florian Fainelli, rppt,
	Andrew Morton, yang.wei9

Yang Wei <albin_yang@163.com> 於 2019年3月4日 週一 下午10:33寫道:
>
> From: Yang Wei <yang.wei9@zte.com.cn>
>
> Delete superfluous semicolons.
>
> Signed-off-by: Yang Wei <yang.wei9@zte.com.cn>
> ---
>  arch/nds32/kernel/cacheinfo.c | 2 +-
>  arch/nds32/mm/init.c          | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/nds32/kernel/cacheinfo.c b/arch/nds32/kernel/cacheinfo.c
> index 0a7bc69..aab98e4 100644
> --- a/arch/nds32/kernel/cacheinfo.c
> +++ b/arch/nds32/kernel/cacheinfo.c
> @@ -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;
> diff --git a/arch/nds32/mm/init.c b/arch/nds32/mm/init.c
> index 253f79f..e2eb4eb 100644
> --- a/arch/nds32/mm/init.c
> +++ b/arch/nds32/mm/init.c
> @@ -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.
Acked-by: Greentime Hu <greentime@andestech.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-03-06  2:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-04 14:33 [PATCH] nds32: fix semicolon code style issue Yang Wei
2019-03-06  2:36 ` Greentime Hu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).