diff mbox

drm/amd/pp: fix semicolon.cocci warnings

Message ID 20180710171108.GA73972@lkp-hsx03 (mailing list archive)
State New, archived
Headers show

Commit Message

Fengguang Wu July 10, 2018, 5:11 p.m. UTC
From: kbuild test robot <fengguang.wu@intel.com>

drivers/gpu/drm/amd/amdgpu/../powerplay/amd_powerplay.c:1209:17-18: Unneeded semicolon


 Remove unneeded semicolon.

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

Fixes: ea870e44415a ("drm/amd/pp: Export notify_smu_enable_pwe to display")
CC: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: kbuild test robot <fengguang.wu@intel.com>
---

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

Comments

Alex Deucher July 10, 2018, 7:07 p.m. UTC | #1
On Tue, Jul 10, 2018 at 1:11 PM, kbuild test robot
<fengguang.wu@intel.com> wrote:
> From: kbuild test robot <fengguang.wu@intel.com>
>
> drivers/gpu/drm/amd/amdgpu/../powerplay/amd_powerplay.c:1209:17-18: Unneeded semicolon
>
>
>  Remove unneeded semicolon.
>
> Generated by: scripts/coccinelle/misc/semicolon.cocci
>
> Fixes: ea870e44415a ("drm/amd/pp: Export notify_smu_enable_pwe to display")
> CC: Rex Zhu <Rex.Zhu@amd.com>
> Signed-off-by: kbuild test robot <fengguang.wu@intel.com>

Applied.  thanks!

Alex

> ---
>
>  amd_powerplay.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- a/drivers/gpu/drm/amd/amdgpu/../powerplay/amd_powerplay.c
> +++ b/drivers/gpu/drm/amd/amdgpu/../powerplay/amd_powerplay.c
> @@ -1206,7 +1206,7 @@ static int pp_notify_smu_enable_pwe(void
>         struct pp_hwmgr *hwmgr = handle;
>
>         if (!hwmgr || !hwmgr->pm_en)
> -               return -EINVAL;;
> +               return -EINVAL;
>
>         if (hwmgr->hwmgr_func->smus_notify_pwe == NULL) {
>                 pr_info("%s was not implemented.\n", __func__);
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
diff mbox

Patch

--- a/drivers/gpu/drm/amd/amdgpu/../powerplay/amd_powerplay.c
+++ b/drivers/gpu/drm/amd/amdgpu/../powerplay/amd_powerplay.c
@@ -1206,7 +1206,7 @@  static int pp_notify_smu_enable_pwe(void
 	struct pp_hwmgr *hwmgr = handle;
 
 	if (!hwmgr || !hwmgr->pm_en)
-		return -EINVAL;;
+		return -EINVAL;
 
 	if (hwmgr->hwmgr_func->smus_notify_pwe == NULL) {
 		pr_info("%s was not implemented.\n", __func__);