Re: [PATCH] drm/amd/pp: silence a static checker warning

2018-03-27 Thread rezhu
Applied. Thanks. Best Regards Rex On 2018年03月26日 11:30, Huang Rui wrote: On Fri, Mar 23, 2018 at 02:39:03PM +0300, Dan Carpenter wrote: 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

Re: [PATCH] drm/amd/pp: silence a static checker warning

2018-03-25 Thread Huang Rui
On Fri, Mar 23, 2018 at 02:39:03PM +0300, Dan Carpenter wrote: > 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. > > Signed-off-by: Dan Carpenter Reviewed-by: Huang Rui

[PATCH] drm/amd/pp: silence a static checker warning

2018-03-23 Thread Dan Carpenter
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. Signed-off-by: Dan Carpenter diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu8_hwmgr.c b/drivers/gpu/drm/amd/powerplay/h