2019-05-10 18:06:50

by kernel test robot

[permalink] [raw]
Subject: [PATCH] power: supply: fix semicolon.cocci warnings

From: kbuild test robot <[email protected]>

drivers/power/supply/ucs1002_power.c:339:2-3: Unneeded semicolon


Remove unneeded semicolon.

Generated by: scripts/coccinelle/misc/semicolon.cocci

Fixes: 9a2688e42638 ("power: supply: Add driver for Microchip UCS1002")
CC: Andrey Smirnov <[email protected]>
Signed-off-by: kbuild test robot <[email protected]>
---

tree: https://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply.git for-next
head: c8f3c9fe83cafc94679007b9c0083ee25d5735e0
commit: 9a2688e42638f2e057dbdfce82e221b38bfba0a7 [42/44] power: supply: Add driver for Microchip UCS1002

ucs1002_power.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/power/supply/ucs1002_power.c
+++ b/drivers/power/supply/ucs1002_power.c
@@ -336,7 +336,7 @@ static int ucs1002_get_usb_type(struct u
case F_ACTIVE_MODE_BC12_CDP:
type = POWER_SUPPLY_USB_TYPE_CDP;
break;
- };
+ }

val->intval = type;


2019-06-27 18:35:50

by Sebastian Reichel

[permalink] [raw]
Subject: Re: [PATCH] power: supply: fix semicolon.cocci warnings

Hi,

On Sat, May 11, 2019 at 02:03:47AM +0800, kbuild test robot wrote:
> From: kbuild test robot <[email protected]>
>
> drivers/power/supply/ucs1002_power.c:339:2-3: Unneeded semicolon
>
>
> Remove unneeded semicolon.
>
> Generated by: scripts/coccinelle/misc/semicolon.cocci

Thanks, queued.

-- Sebastian

> Fixes: 9a2688e42638 ("power: supply: Add driver for Microchip UCS1002")
> CC: Andrey Smirnov <[email protected]>
> Signed-off-by: kbuild test robot <[email protected]>
> ---
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply.git for-next
> head: c8f3c9fe83cafc94679007b9c0083ee25d5735e0
> commit: 9a2688e42638f2e057dbdfce82e221b38bfba0a7 [42/44] power: supply: Add driver for Microchip UCS1002
>
> ucs1002_power.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- a/drivers/power/supply/ucs1002_power.c
> +++ b/drivers/power/supply/ucs1002_power.c
> @@ -336,7 +336,7 @@ static int ucs1002_get_usb_type(struct u
> case F_ACTIVE_MODE_BC12_CDP:
> type = POWER_SUPPLY_USB_TYPE_CDP;
> break;
> - };
> + }
>
> val->intval = type;
>


Attachments:
(No filename) (1.12 kB)
signature.asc (849.00 B)
Download all attachments