]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/pp: silence a static checker warning
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 23 Mar 2018 11:39:03 +0000 (14:39 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 3 Apr 2018 17:52:57 +0000 (12:52 -0500)
commitd59d0f0639c5def0251b982a13f07ea2a01d3bc8
treea918d2dede7a337bafbdedd9e7b8bcb8dd37c55c
parentececf4fd6357611518dbfef4d2bd038905701dff
drm/amd/pp: silence a static checker warning

This has a static checker warning because "frev" and "crev" can be
uninitialized if "info" is NULL.  I just changed the order of the checks
so that we check "info" first.

Reviewed-by: Rex Zhu <Rex.Zhu@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/smu8_hwmgr.c