From b3d5fef7c253cfa0907dcb4a8d1fde48b10aa17d Mon Sep 17 00:00:00 2001 From: Ray Chin Date: Tue, 14 May 2024 13:16:38 +0800 Subject: [PATCH] Fix force setting environment variable error Bug: 339612366 Test: no need Change-Id: I3194b3b385a8f02332ac848b4fcab10090486173 --- tv/tuner/aidl/vts/functional/VtsHalTvTunerTargetTest.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tv/tuner/aidl/vts/functional/VtsHalTvTunerTargetTest.h b/tv/tuner/aidl/vts/functional/VtsHalTvTunerTargetTest.h index 491a79b5a4..6cabb3d8d7 100644 --- a/tv/tuner/aidl/vts/functional/VtsHalTvTunerTargetTest.h +++ b/tv/tuner/aidl/vts/functional/VtsHalTvTunerTargetTest.h @@ -31,11 +31,7 @@ namespace { bool initConfiguration() { std::array variant; - auto res = property_get("ro.vendor.vts_tuner_configuration_variant", variant.data(), ""); - if (res <= 0) { - ALOGE("[vts] failed to read system property ro.vendor.vts_tuner_configuration_variant"); - return false; - } + property_get("ro.vendor.vts_tuner_configuration_variant", variant.data(), ""); string configFilePath = "/vendor/etc/tuner_vts_config_aidl_V1"; if (variant.size() != 0) { configFilePath = configFilePath + "." + variant.data();