2020-09-09 15:07:11

by Zheng Bin

[permalink] [raw]
Subject: [PATCH -next] drm/bridge/tc358775: Remove unneeded semicolon

Fixes coccicheck warning:

drivers/gpu/drm/bridge/tc358775.c:488:2-3: Unneeded semicolon

Signed-off-by: Zheng Bin <[email protected]>
---
drivers/gpu/drm/bridge/tc358775.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/bridge/tc358775.c b/drivers/gpu/drm/bridge/tc358775.c
index d951cdc58297..2272adcc5b4a 100644
--- a/drivers/gpu/drm/bridge/tc358775.c
+++ b/drivers/gpu/drm/bridge/tc358775.c
@@ -485,7 +485,7 @@ static void tc_bridge_enable(struct drm_bridge *bridge)
val |= TC358775_LVCFG_PCLKDIV(DIVIDE_BY_6);
} else {
val |= TC358775_LVCFG_PCLKDIV(DIVIDE_BY_3);
- };
+ }
d2l_write(tc->i2c, LVCFG, val);
}

--
2.26.0.106.g9fadedd


2020-09-10 05:48:02

by Daniel Vetter

[permalink] [raw]
Subject: Re: [PATCH -next] drm/bridge/tc358775: Remove unneeded semicolon

On Wed, Sep 09, 2020 at 08:19:00PM +0800, Zheng Bin wrote:
> Fixes coccicheck warning:
>
> drivers/gpu/drm/bridge/tc358775.c:488:2-3: Unneeded semicolon
>
> Signed-off-by: Zheng Bin <[email protected]>

Queued for 5.10, thanks for your patch.
-Daniel

> ---
> drivers/gpu/drm/bridge/tc358775.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/bridge/tc358775.c b/drivers/gpu/drm/bridge/tc358775.c
> index d951cdc58297..2272adcc5b4a 100644
> --- a/drivers/gpu/drm/bridge/tc358775.c
> +++ b/drivers/gpu/drm/bridge/tc358775.c
> @@ -485,7 +485,7 @@ static void tc_bridge_enable(struct drm_bridge *bridge)
> val |= TC358775_LVCFG_PCLKDIV(DIVIDE_BY_6);
> } else {
> val |= TC358775_LVCFG_PCLKDIV(DIVIDE_BY_3);
> - };
> + }
> d2l_write(tc->i2c, LVCFG, val);
> }
>
> --
> 2.26.0.106.g9fadedd
>

--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch