* [agd5f:drm-next 96/114] drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_5_ppt.c:235:5-8: Unneeded variable: "ret". Return "0" on line 243
@ 2022-02-20 15:52 kernel test robot
2022-02-20 15:50 ` [PATCH] drm/amd/pm: fix returnvar.cocci warnings kernel test robot
0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2022-02-20 15:52 UTC (permalink / raw)
To: Yifan Zhang; +Cc: kbuild-all, linux-kernel, Alex Deucher, Huang Rui
tree: https://gitlab.freedesktop.org/agd5f/linux.git drm-next
head: ad72a74cfe7edab15aef40519727a388285e7510
commit: 068ea8bdc0aacb3bba3d1392ed41cc1116a671b8 [96/114] drm/amd/pm: add smu_v13_0_5_ppt implementation
config: arm64-randconfig-c023-20220220 (https://download.01.org/0day-ci/archive/20220220/202202202323.i1r9Jm11-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 11.2.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
cocci warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_5_ppt.c:235:5-8: Unneeded variable: "ret". Return "0" on line 243
Please review and possibly fold the followup patch.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH] drm/amd/pm: fix returnvar.cocci warnings
2022-02-20 15:52 [agd5f:drm-next 96/114] drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_5_ppt.c:235:5-8: Unneeded variable: "ret". Return "0" on line 243 kernel test robot
@ 2022-02-20 15:50 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-02-20 15:50 UTC (permalink / raw)
To: Yifan Zhang; +Cc: kbuild-all, linux-kernel, Alex Deucher, Huang Rui
From: kernel test robot <lkp@intel.com>
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_5_ppt.c:235:5-8: Unneeded variable: "ret". Return "0" on line 243
Remove unneeded variable used to store return value.
Generated by: scripts/coccinelle/misc/returnvar.cocci
Fixes: 068ea8bdc0aa ("drm/amd/pm: add smu_v13_0_5_ppt implementation")
CC: Yifan Zhang <yifan1.zhang@amd.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
---
tree: https://gitlab.freedesktop.org/agd5f/linux.git drm-next
head: ad72a74cfe7edab15aef40519727a388285e7510
commit: 068ea8bdc0aacb3bba3d1392ed41cc1116a671b8 [96/114] drm/amd/pm: add smu_v13_0_5_ppt implementation
:::::: branch date: 2 days ago
:::::: commit date: 2 days ago
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_5_ppt.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
--- a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_5_ppt.c
+++ b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_5_ppt.c
@@ -229,18 +229,13 @@ static bool smu_v13_0_5_is_dpm_running(s
static int smu_v13_0_5_post_smu_init(struct smu_context *smu)
{
- /*
- struct amdgpu_device *adev = smu->adev;
- */
- int ret = 0;
-
/* allow message will be sent after enable gfxoff on smu 13.0.5 */
/*
ret = smu_cmn_send_smc_msg(smu, SMU_MSG_EnableGfxOff, NULL);
if (ret)
dev_err(adev->dev, "Failed to Enable GfxOff!\n");
*/
- return ret;
+ return 0;
}
static int smu_v13_0_5_mode_reset(struct smu_context *smu, int type)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-02-20 15:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-20 15:52 [agd5f:drm-next 96/114] drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_5_ppt.c:235:5-8: Unneeded variable: "ret". Return "0" on line 243 kernel test robot
2022-02-20 15:50 ` [PATCH] drm/amd/pm: fix returnvar.cocci warnings kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®