]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/pm: fix uninitialized variable warning
authorJesse Zhang <jesse.zhang@amd.com>
Sun, 28 Apr 2024 07:36:26 +0000 (15:36 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 30 Apr 2024 13:59:26 +0000 (09:59 -0400)
commit7c836905520703dbc8b938993b6d4d718bc739f3
treef9df9aafe791b8977e5d5f4b1089c753f2d704b6
parent579f0c21baec9e7506b6bb3f60f0a9b6d07693b4
drm/amd/pm: fix uninitialized variable warning

Check the return of function smum_send_msg_to_smc
as it may fail to initialize the variable.

Signed-off-by: Jesse Zhang <Jesse.Zhang@amd.com>
Reviewed-by: Yang Wang <kevinyang.wang@amd.com>
Reviewed-by: Tim Huang <Tim.Huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c