diff mbox series

powercap/intel_rapl: remove unneeded semicolon

Message ID 20201101141129.2280794-1-trix@redhat.com
State Accepted
Commit a8193af7ec0db73c0c86d02a5d5ffc1dc2ab4e88
Headers show
Series powercap/intel_rapl: remove unneeded semicolon | expand

Commit Message

Tom Rix Nov. 1, 2020, 2:11 p.m. UTC
From: Tom Rix <trix@redhat.com>

A semicolon is not needed after a switch statement.

Signed-off-by: Tom Rix <trix@redhat.com>
---
 drivers/powercap/intel_rapl_common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Rafael J. Wysocki Nov. 2, 2020, 5:05 p.m. UTC | #1
On Sun, Nov 1, 2020 at 3:11 PM <trix@redhat.com> wrote:
>

> From: Tom Rix <trix@redhat.com>

>

> A semicolon is not needed after a switch statement.

>

> Signed-off-by: Tom Rix <trix@redhat.com>

> ---

>  drivers/powercap/intel_rapl_common.c | 2 +-

>  1 file changed, 1 insertion(+), 1 deletion(-)

>

> diff --git a/drivers/powercap/intel_rapl_common.c b/drivers/powercap/intel_rapl_common.c

> index 983d75bd5bd1..020373d6d3f1 100644

> --- a/drivers/powercap/intel_rapl_common.c

> +++ b/drivers/powercap/intel_rapl_common.c

> @@ -613,7 +613,7 @@ static u64 rapl_unit_xlate(struct rapl_domain *rd, enum unit_type type,

>         case ARBITRARY_UNIT:

>         default:

>                 return value;

> -       };

> +       }

>

>         if (to_raw)

>                 return div64_u64(value, units) * scale;

> --


Applied as 5.10-rc material, thanks!
diff mbox series

Patch

diff --git a/drivers/powercap/intel_rapl_common.c b/drivers/powercap/intel_rapl_common.c
index 983d75bd5bd1..020373d6d3f1 100644
--- a/drivers/powercap/intel_rapl_common.c
+++ b/drivers/powercap/intel_rapl_common.c
@@ -613,7 +613,7 @@  static u64 rapl_unit_xlate(struct rapl_domain *rd, enum unit_type type,
 	case ARBITRARY_UNIT:
 	default:
 		return value;
-	};
+	}
 
 	if (to_raw)
 		return div64_u64(value, units) * scale;