ac/gpu: drop duplicated code line.
authorDave Airlie <airlied@redhat.com>
Mon, 12 Jun 2017 23:47:00 +0000 (09:47 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 13 Jun 2017 00:01:40 +0000 (10:01 +1000)
has_hw_decode is assigned twice.

Pointed out by coverity.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_gpu_info.c

index dc3ae25acf626fdaf0fc1b1b3e65b8bc43671bc8..7d6f6e7d8acda4a29837d569036cf0407edeffb0 100644 (file)
@@ -249,7 +249,6 @@ bool ac_query_gpu_info(int fd, amdgpu_device_handle dev,
        info->max_shader_clock = amdinfo->max_engine_clk / 1000;
        info->max_se = amdinfo->num_shader_engines;
        info->max_sh_per_se = amdinfo->num_shader_arrays_per_engine;
-       info->has_hw_decode = uvd.available_rings != 0;
        info->has_hw_decode =
                (uvd.available_rings != 0) || (vcn_dec.available_rings != 0);
        info->uvd_fw_version =