drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c:1812: possible pointless variable ?

From: David Binderman
Date: Mon Jun 27 2016 - 06:01:02 EST


Hello there,

linux-4.7-rc5/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c:1812]:
(style) Variable 'stretch_amount2' is assigned a value that is never
used.

Source code is

else if (stretch_amount == 3 || stretch_amount == 4)
stretch_amount2 = 1;

Suggest either use the variable in some way, or delete it.

Regards

David Binderman