drm/radeon: remove some buggy dead code

The calculation of "num_shader_engines" has a precedence bug because
the right shift happens before the mask, but this variable is never used
so we can just delete it.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Dan Carpenter and committed by
Alex Deucher
072c44bf 8c3e4347

+1 -3
+1 -3
drivers/gpu/drm/radeon/evergreen.c
··· 3005 3005 u32 vgt_cache_invalidation; 3006 3006 u32 hdp_host_path_cntl, tmp; 3007 3007 u32 disabled_rb_mask; 3008 - int i, j, num_shader_engines, ps_thread_count; 3008 + int i, j, ps_thread_count; 3009 3009 3010 3010 switch (rdev->family) { 3011 3011 case CHIP_CYPRESS: ··· 3302 3302 rdev->config.evergreen.tile_config |= 0 << 8; 3303 3303 rdev->config.evergreen.tile_config |= 3304 3304 ((gb_addr_config & 0x30000000) >> 28) << 12; 3305 - 3306 - num_shader_engines = (gb_addr_config & NUM_SHADER_ENGINES(3) >> 12) + 1; 3307 3305 3308 3306 if ((rdev->family >= CHIP_CEDAR) && (rdev->family <= CHIP_HEMLOCK)) { 3309 3307 u32 efuse_straps_4;