Merge "msm: camera: sensor: Fix an operator error" into camera-kernel.lnx.4.0
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

commit
139893ac96
@@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <linux/module.h>
|
||||
@@ -1319,8 +1319,8 @@ int32_t cam_sensor_flush_request(struct cam_req_mgr_flush_request *flush_req)
|
||||
}
|
||||
|
||||
mutex_lock(&(s_ctrl->cam_sensor_mutex));
|
||||
if (s_ctrl->sensor_state != CAM_SENSOR_START ||
|
||||
s_ctrl->sensor_state != CAM_SENSOR_CONFIG) {
|
||||
if ((s_ctrl->sensor_state != CAM_SENSOR_START) &&
|
||||
(s_ctrl->sensor_state != CAM_SENSOR_CONFIG)) {
|
||||
mutex_unlock(&(s_ctrl->cam_sensor_mutex));
|
||||
return rc;
|
||||
}
|
||||
|
Reference in New Issue
Block a user