drm/amd/powerplay: drop unneeded newline
authorJulia Lawall <Julia.Lawall@lip6.fr>
Wed, 27 Dec 2017 14:51:44 +0000 (15:51 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:17:03 +0000 (14:17 -0500)
PP_ASSERT_WITH_CODE prints a newline at the end of the message string,
so the message string does not need to include a newline explicitly.
Done using Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c
drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c
drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c
drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c

index 41e42beff213905837c15db1841800b2021ec502..128046882168b1d8ebc99e2535446614d4caeabb 100644 (file)
@@ -2266,14 +2266,18 @@ static int smu7_set_private_data_based_on_pptable_v0(struct pp_hwmgr *hwmgr)
        struct phm_clock_voltage_dependency_table *allowed_mclk_vddci_table = hwmgr->dyn_state.vddci_dependency_on_mclk;
 
        PP_ASSERT_WITH_CODE(allowed_sclk_vddc_table != NULL,
-               "VDDC dependency on SCLK table is missing. This table is mandatory\n", return -EINVAL);
+               "VDDC dependency on SCLK table is missing. This table is mandatory",
+               return -EINVAL);
        PP_ASSERT_WITH_CODE(allowed_sclk_vddc_table->count >= 1,
-               "VDDC dependency on SCLK table has to have is missing. This table is mandatory\n", return -EINVAL);
+               "VDDC dependency on SCLK table has to have is missing. This table is mandatory",
+               return -EINVAL);
 
        PP_ASSERT_WITH_CODE(allowed_mclk_vddc_table != NULL,
-               "VDDC dependency on MCLK table is missing. This table is mandatory\n", return -EINVAL);
+               "VDDC dependency on MCLK table is missing. This table is mandatory",
+               return -EINVAL);
        PP_ASSERT_WITH_CODE(allowed_mclk_vddc_table->count >= 1,
-               "VDD dependency on MCLK table has to have is missing. This table is mandatory\n", return -EINVAL);
+               "VDD dependency on MCLK table has to have is missing. This table is mandatory",
+               return -EINVAL);
 
        data->min_vddc_in_pptable = (uint16_t)allowed_sclk_vddc_table->entries[0].v;
        data->max_vddc_in_pptable = (uint16_t)allowed_sclk_vddc_table->entries[allowed_sclk_vddc_table->count - 1].v;
index 085d81c8b33259a1af1b64aa171eb417b3d932a7..427daa65c4d1296fbb40285c22543fef637bc9e2 100644 (file)
@@ -1799,7 +1799,7 @@ static int fiji_populate_clock_stretcher_data_table(struct pp_hwmgr *hwmgr)
                phm_cap_unset(hwmgr->platform_descriptor.platformCaps,
                                PHM_PlatformCaps_ClockStretcher);
                PP_ASSERT_WITH_CODE(false,
-                               "Stretch Amount in PPTable not supported\n",
+                               "Stretch Amount in PPTable not supported",
                                return -EINVAL);
        }
 
index 125312691f7539689e467fdcdc580bf9d45fa1a7..6400065a87107c8529960d9db10a9f8486b1794b 100644 (file)
@@ -546,7 +546,7 @@ static int iceland_get_std_voltage_value_sidd(struct pp_hwmgr *hwmgr,
 
        /* SCLK/VDDC Dependency Table has to exist. */
        PP_ASSERT_WITH_CODE(NULL != hwmgr->dyn_state.vddc_dependency_on_sclk,
-                       "The SCLK/VDDC Dependency Table does not exist.\n",
+                       "The SCLK/VDDC Dependency Table does not exist.",
                        return -EINVAL);
 
        if (NULL == hwmgr->dyn_state.cac_leakage_table) {
index cdb47657b56774308ebb7cc88848b543da92e10b..fd874f7b88d01d8b2f4f993610ef11ba5b7d0413 100644 (file)
@@ -1652,7 +1652,7 @@ static int polaris10_populate_clock_stretcher_data_table(struct pp_hwmgr *hwmgr)
                phm_cap_unset(hwmgr->platform_descriptor.platformCaps,
                                PHM_PlatformCaps_ClockStretcher);
                PP_ASSERT_WITH_CODE(false,
-                               "Stretch Amount in PPTable not supported\n",
+                               "Stretch Amount in PPTable not supported",
                                return -EINVAL);
        }
 
index 79e5c05571bcb829b03207f836bba5c01be2c38e..5eb719e111eee83987b59649487c46e6004d9973 100644 (file)
@@ -1699,7 +1699,7 @@ static int tonga_populate_clock_stretcher_data_table(struct pp_hwmgr *hwmgr)
                phm_cap_unset(hwmgr->platform_descriptor.platformCaps,
                                PHM_PlatformCaps_ClockStretcher);
                PP_ASSERT_WITH_CODE(false,
-                               "Stretch Amount in PPTable not supported\n",
+                               "Stretch Amount in PPTable not supported",
                                return -EINVAL);
        }