From e0a069edc2d79b69fd187ffbe03a8388a612b3ff Mon Sep 17 00:00:00 2001 From: Jesus Fernandez Date: Mon, 19 Mar 2018 12:05:57 +0100 Subject: Remove unreachable code Actions intended to be performed by the unreachable code will never occur. In CameraBinLocks::lockStatus(QCamera::LockType): Code block is unreachable because of the syntactic structure of the code (CWE-561) Coverity-Id: 188406 Change-Id: I55a7ef8e87673519ff4f1ad5677054b34bf66d17 Reviewed-by: Christian Stromme --- src/plugins/gstreamer/camerabin/camerabinlocks.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/plugins/gstreamer/camerabin/camerabinlocks.cpp') diff --git a/src/plugins/gstreamer/camerabin/camerabinlocks.cpp b/src/plugins/gstreamer/camerabin/camerabinlocks.cpp index 2ccc1b0bc..89be2ac5d 100644 --- a/src/plugins/gstreamer/camerabin/camerabinlocks.cpp +++ b/src/plugins/gstreamer/camerabin/camerabinlocks.cpp @@ -102,8 +102,6 @@ QCamera::LockStatus CameraBinLocks::lockStatus(QCamera::LockType lock) const default: return QCamera::Unlocked; } - - return lock == QCamera::LockFocus ? m_focus->focusStatus() : QCamera::Unlocked; } void CameraBinLocks::searchAndLock(QCamera::LockTypes locks) -- cgit v1.2.3