From 3e02a604124f6f2ec60bf24ec9cdd45b9c1c84c8 Mon Sep 17 00:00:00 2001 From: Greg Kaiser Date: Sun, 21 Feb 2021 10:29:33 -0800 Subject: [PATCH] trusty: Remove redundant check This repeats a check in the lines immediately before it. Test: TreeHugger Change-Id: I47ac9f359018b87bc283657eddb75ad3d175244e --- trusty/confirmationui/TrustyApp.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/trusty/confirmationui/TrustyApp.cpp b/trusty/confirmationui/TrustyApp.cpp index 0e84b19c6..1e70a5e15 100644 --- a/trusty/confirmationui/TrustyApp.cpp +++ b/trusty/confirmationui/TrustyApp.cpp @@ -107,11 +107,6 @@ TrustyApp::TrustyApp(const std::string& path, const std::string& appname) return; } - if (dma_buf < 0) { - LOG(ERROR) << AT << "failed to allocate shared memory buffer"; - return; - } - confirmationui_hdr hdr = { .cmd = CONFIRMATIONUI_CMD_INIT, };