• Lee Jones's avatar
    drm/radeon/radeon_ttm: Place declaration of 'rdev' in same clause as its use · 92378a4b
    Lee Jones authored
    Fixes the following W=1 kernel build warning(s):
    
     drivers/gpu/drm/radeon/radeon_ttm.c: In function ‘radeon_ttm_tt_create’:
     drivers/gpu/drm/radeon/radeon_ttm.c:611:24: warning: variable ‘rdev’ set but not used [-Wunused-but-set-variable]
    
    Cc: Alex Deucher <alexander.deucher@amd.com>
    Cc: "Christian König" <christian.koenig@amd.com>
    Cc: David Airlie <airlied@linux.ie>
    Cc: Daniel Vetter <daniel@ffwll.ch>
    Cc: Jerome Glisse <glisse@freedesktop.org>
    Cc: amd-gfx@lists.freedesktop.org
    Cc: dri-devel@lists.freedesktop.org
    Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
    Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
    92378a4b
radeon_ttm.c 28.6 KB