Skip to contentSkip to conversation

drm/amd/powerplay: fix semicolon code style issue

PATCH Applied Yang Wei 2 participants 2 messages Feb 28, 2019 – Mar 1, 2019 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

Yang Wei

author
#0 lore raw

PATCH 1/1 drm/amd/powerplay: fix semicolon code style issue

From: Yang Wei <[email protected]>

Delete superfluous semicolons.

---
 drivers/gpu/drm/amd/powerplay/amd_powerplay.c         | 8 ++++----
 drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)
drivers/gpu/drm/amd/powerplay/amd_powerplay.c +4 -4
index 9bc27f4..b12c828 100644
@@ -1304,7 +1304,7 @@ static int pp_notify_smu_enable_pwe(void *handle)
 
 	if (hwmgr->hwmgr_func->smus_notify_pwe == NULL) {
 		pr_info_ratelimited("%s was not implemented.\n", __func__);
-		return -EINVAL;;
+		return -EINVAL;
 	}
 
 	mutex_lock(&hwmgr->smu_lock);
@@ -1341,7 +1341,7 @@ static int pp_set_min_deep_sleep_dcefclk(void *handle, uint32_t clock)
 
 	if (hwmgr->hwmgr_func->set_min_deep_sleep_dcefclk == NULL) {
 		pr_debug("%s was not implemented.\n", __func__);
-		return -EINVAL;;
+		return -EINVAL;
 	}
 
 	mutex_lock(&hwmgr->smu_lock);
@@ -1360,7 +1360,7 @@ static int pp_set_hard_min_dcefclk_by_freq(void *handle, uint32_t clock)
 
 	if (hwmgr->hwmgr_func->set_hard_min_dcefclk_by_freq == NULL) {
 		pr_debug("%s was not implemented.\n", __func__);
-		return -EINVAL;;
+		return -EINVAL;
 	}
 
 	mutex_lock(&hwmgr->smu_lock);
@@ -1379,7 +1379,7 @@ static int pp_set_hard_min_fclk_by_freq(void *handle, uint32_t clock)
 
 	if (hwmgr->hwmgr_func->set_hard_min_fclk_by_freq == NULL) {
 		pr_debug("%s was not implemented.\n", __func__);
-		return -EINVAL;;
+		return -EINVAL;
 	}
 
 	mutex_lock(&hwmgr->smu_lock);
drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c +1 -1
index 1f92a9f..ffa7d46 100644
@@ -76,7 +76,7 @@ int phm_set_power_state(struct pp_hwmgr *hwmgr,
 int phm_enable_dynamic_state_management(struct pp_hwmgr *hwmgr)
 {
 	struct amdgpu_device *adev = NULL;
-	int ret = -EINVAL;;
+	int ret = -EINVAL;
 	PHM_FUNC_CHECK(hwmgr);
 	adev = hwmgr->adev;
 
Signature · 7 lines
2.7.4


_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 1551365284-4459-1-git-send-email-albin_yang-9Onoh4P/[email protected]

Applied
#2 lore raw
Quoted 6 lines · Yang Wei

From: Yang Wei <[email protected]>

Delete superfluous semicolons.

Applied. thanks!

Alex

Quoted 62 lines
---
 drivers/gpu/drm/amd/powerplay/amd_powerplay.c         | 8 ++++----
 drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)
drivers/gpu/drm/amd/powerplay/amd_powerplay.c +4 -4
index 9bc27f4..b12c828 100644
@@ -1304,7 +1304,7 @@ static int pp_notify_smu_enable_pwe(void *handle)
 
        if (hwmgr->hwmgr_func->smus_notify_pwe == NULL) {
                pr_info_ratelimited("%s was not implemented.\n", __func__);
-               return -EINVAL;;
+               return -EINVAL;
        }
 
        mutex_lock(&hwmgr->smu_lock);
@@ -1341,7 +1341,7 @@ static int pp_set_min_deep_sleep_dcefclk(void *handle, uint32_t clock)
 
        if (hwmgr->hwmgr_func->set_min_deep_sleep_dcefclk == NULL) {
                pr_debug("%s was not implemented.\n", __func__);
-               return -EINVAL;;
+               return -EINVAL;
        }
 
        mutex_lock(&hwmgr->smu_lock);
@@ -1360,7 +1360,7 @@ static int pp_set_hard_min_dcefclk_by_freq(void *handle, uint32_t clock)
 
        if (hwmgr->hwmgr_func->set_hard_min_dcefclk_by_freq == NULL) {
                pr_debug("%s was not implemented.\n", __func__);
-               return -EINVAL;;
+               return -EINVAL;
        }
 
        mutex_lock(&hwmgr->smu_lock);
@@ -1379,7 +1379,7 @@ static int pp_set_hard_min_fclk_by_freq(void *handle, uint32_t clock)
 
        if (hwmgr->hwmgr_func->set_hard_min_fclk_by_freq == NULL) {
                pr_debug("%s was not implemented.\n", __func__);
-               return -EINVAL;;
+               return -EINVAL;
        }
 
        mutex_lock(&hwmgr->smu_lock);
drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c +1 -2
index 1f92a9f..ffa7d46 100644
@@ -76,7 +76,7 @@ int phm_set_power_state(struct pp_hwmgr *hwmgr,
 int phm_enable_dynamic_state_management(struct pp_hwmgr *hwmgr)
 {
        struct amdgpu_device *adev = NULL;
-       int ret = -EINVAL;;
+       int ret = -EINVAL;
        PHM_FUNC_CHECK(hwmgr);
        adev = hwmgr->adev;
 
--

2.7.4

Quoted 4 lines

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx