drm/amd/powerplay: Remove unneeded cast from memory allocation
authorLi Heng <liheng40@huawei.com>
Wed, 29 Jul 2020 08:34:01 +0000 (16:34 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Jul 2020 19:36:44 +0000 (15:36 -0400)
commit317469f695c27e290b8001a0df0fdbb95f27bfa9
tree66e27aa4244cb7f225ca9ed30582ad66e2cbafd2
parent8e326285924cd13d9d94edc209440ef5b6f85085
drm/amd/powerplay: Remove unneeded cast from memory allocation

Remove casting the values returned by memory allocation function.

Coccinelle emits WARNING:

./drivers/gpu/drm/amd/powerplay/hwmgr/vega20_processpptables.c:893:37-46: WARNING: casting value returned by memory allocation function to (PPTable_t *) is useless.

Signed-off-by: Li Heng <liheng40@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/vega20_processpptables.c