From b538d4c85541de47d981d39edb4f74f8c171d019 Mon Sep 17 00:00:00 2001 From: "kibak.yoon" Date: Tue, 5 Apr 2016 15:26:31 +0900 Subject: [PATCH] sensor-hal-tw1: remove useless code in pressure_device Change-Id: Ic53b59890e8aea459326f9a9cf3ea1c810da5c58 Signed-off-by: kibak.yoon --- src/pressure/pressure_device.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/pressure/pressure_device.cpp b/src/pressure/pressure_device.cpp index 164f582..993fc5f 100644 --- a/src/pressure/pressure_device.cpp +++ b/src/pressure/pressure_device.cpp @@ -174,11 +174,6 @@ pressure_device::pressure_device() throw ENXIO; } - if ((m_node_handle = open(m_data_node.c_str(),O_RDWR)) < 0) { - _E("Failed to open handle(%d)", m_node_handle); - throw ENXIO; - } - if (m_method == INPUT_EVENT_METHOD) { int clockId = CLOCK_MONOTONIC; if (ioctl(m_node_handle, EVIOCSCLOCKID, &clockId) != 0) { -- 2.34.1