RE: [PATCH] drivers/platform/x86: fix semicolon.cocci warnings

From: Vadim Pasternak
Date: Thu Oct 27 2016 - 14:36:57 EST




> -----Original Message-----
> From: kbuild test robot [mailto:lkp@xxxxxxxxx]
> Sent: Thursday, October 27, 2016 8:27 PM
> To: Vadim Pasternak <vadimp@xxxxxxxxxxxx>
> Cc: kbuild-all@xxxxxx; dvhart@xxxxxxxxxxxxx; fengguang.wu@xxxxxxxxx;
> davem@xxxxxxxxxxxxx; geert@xxxxxxxxxxxxxx; akpm@xxxxxxxxxxxxxxxxxxxx;
> kvalo@xxxxxxxxxxxxxx; gregkh@xxxxxxxxxxxxxxxxxxx; mchehab@xxxxxxxxxx;
> linux@xxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx; platform-driver-
> x86@xxxxxxxxxxxxxxx; jiri@xxxxxxxxxxx; andriy.shevchenko@xxxxxxxxxxxxxxx;
> Vadim Pasternak <vadimp@xxxxxxxxxxxx>
> Subject: [PATCH] drivers/platform/x86: fix semicolon.cocci warnings
>
> drivers/platform/x86/mlx-platform.c:219:2-3: Unneeded semicolon
>
>
> Remove unneeded semicolon.
>
> Generated by: scripts/coccinelle/misc/semicolon.cocci
>
> CC: Vadim Pasternak <vadimp@xxxxxxxxxxxx>
> Signed-off-by: Fengguang Wu <fengguang.wu@xxxxxxxxx>
> ---
>
> mlx-platform.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- a/drivers/platform/x86/mlx-platform.c
> +++ b/drivers/platform/x86/mlx-platform.c
> @@ -216,7 +216,7 @@ static int __init mlxplat_init(void)
> if (IS_ERR(priv->pdev_i2c)) {
> err = PTR_ERR(priv->pdev_i2c);
> goto fail_alloc;
> - };
> + }

Acked-by: Vadim Pasternak <vadimp@xxxxxxxxxxxx>

>
> for (i = 0; i < ARRAY_SIZE(mlxplat_mux_data); i++) {
> priv->pdev_mux[i] = platform_device_register_resndata(