code cleanup - remove unnecessary check (#109)

[ROCm/rocjpeg commit: eb97d3517d]
Этот коммит содержится в:
Aryan Salmanpour
2025-01-15 20:31:07 -05:00
коммит произвёл GitHub
родитель 1d7c5caf5c
Коммит 473c678a3d
+4 -6
Просмотреть файл
@@ -383,12 +383,10 @@ RocJpegStatus RocJpegVappiDecoder::InitializeDecoder(std::string device_name, st
GetGpuUuids();
int offset = 0;
if (gcn_arch_name_base.compare("gfx942") == 0) {
std::vector<ComputePartition> current_compute_partitions;
GetCurrentComputePartition(current_compute_partitions);
if (!current_compute_partitions.empty()) {
GetDrmNodeOffset(device_name, device_id_, visible_devices, current_compute_partitions, offset);
}
std::vector<ComputePartition> current_compute_partitions;
GetCurrentComputePartition(current_compute_partitions);
if (!current_compute_partitions.empty()) {
GetDrmNodeOffset(device_name, device_id_, visible_devices, current_compute_partitions, offset);
}
std::string drm_node = "/dev/dri/renderD";