sensor: remove redundant condition
[sensor.cpp:147]: (style) Redundant condition: statusIface.
'!statusIface || (statusIface && statusIface->functional())' is
equivalent to '!statusIface || statusIface->functional()'
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I4f3c3f6e2e009dfaffc5671dc94b2f553f7029ef
diff --git a/sensor.cpp b/sensor.cpp
index e6e8413..a9e4454 100644
--- a/sensor.cpp
+++ b/sensor.cpp
@@ -144,7 +144,7 @@
// If there's no fault file or the sensor has a fault file and
// its status is functional, read the input value.
- if (!statusIface || (statusIface && statusIface->functional()))
+ if (!statusIface || statusIface->functional())
{
// RAII object for GPIO unlock / lock
GpioLock gpioLock(getGpio());