]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/smu10: remove duplicate assignment of smu10_hwmgr_funcs members
authorJason Yan <yanaijie@huawei.com>
Tue, 28 Apr 2020 06:30:03 +0000 (14:30 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Apr 2020 20:48:07 +0000 (16:48 -0400)
commit38324698d82f9f14962d0bd51c5fccf7ae77ff8c
tree637106160b551e35e0e1221124351ccbb5d462c1
parent8cc9f92e5d4089b52c18cf58174727eb9d2f1637
drm/amdgpu/smu10: remove duplicate assignment of smu10_hwmgr_funcs members

The struct member 'asic_setup' was assigned twice, let's remove one:

static const struct pp_hwmgr_func smu10_hwmgr_funcs = {
......
.asic_setup = NULL,
......
.asic_setup = smu10_setup_asic_task,
......
};

This fixes the following coccicheck warning:

drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c:1357:52-53:
asic_setup: first occurrence line 1360, second occurrence line 1388

Signed-off-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c