drm/amd/powerplay: fix a reversed condition
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 4 Jan 2016 20:42:55 +0000 (23:42 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 4 Jan 2016 21:16:59 +0000 (16:16 -0500)
commit2500a3c9e06d349defdca00f2efd7fab189ae72f
tree727725c411d7f3140cedb7e7af87129872065e1b
parent85a21eafbc2218ffba59b1dda2ce9d7148bf43d2
drm/amd/powerplay: fix a reversed condition

This test was reversed so it would end up leading to a NULL dereference.

Fixes: 4630f0faae80 ('drm/amd/powerplay: add Carrizo smu support')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/smumgr/cz_smumgr.c