Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7c7244bf authored by Jan Sebechlebsky's avatar Jan Sebechlebsky
Browse files

Remove confusing error log when importing empty fence

... since it's not really an error and happens quite regularly.

Bug: 301023410
Test: N/A
Change-Id: I6e72a106776c885148d3e31c7a09fade424549ac
parent 96772400
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -14,14 +14,10 @@
 * limitations under the License.
 */

// #define LOG_NDEBUG 0
#define LOG_TAG "VirtualCameraUtil"
#include "Util.h"

#include <unistd.h>

#include "log/log.h"

namespace android {
namespace companion {
namespace virtualcamera {
@@ -30,10 +26,6 @@ using ::aidl::android::hardware::common::NativeHandle;

sp<Fence> importFence(const NativeHandle& aidlHandle) {
  if (aidlHandle.fds.size() != 1) {
    ALOGE(
        "%s: Cannot import fence from aidlHandle containing %d file "
        "descriptors.",
        __func__, static_cast<int>(aidlHandle.fds.size()));
    return sp<Fence>::make();
  }