msm: camera: common: Change judgement condition
Icc_get return value is IS_ERR type, so the commit change the judgement condition. CRs-Fixed: 2988670 Change-Id: I2c3375922bc42b598aa8872c756a47e881ccb80c Signed-off-by: zhuo <zhuo@codeaurora.org>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2019-2020, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2019-2021, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <linux/interconnect.h>
|
||||
@@ -103,7 +103,7 @@ int cam_soc_bus_client_register(struct platform_device *pdev,
|
||||
bus_client_data->icc_data = icc_get(&pdev->dev,
|
||||
bus_client->common_data->src_id,
|
||||
bus_client->common_data->dst_id);
|
||||
if (!bus_client_data->icc_data) {
|
||||
if (IS_ERR_OR_NULL(bus_client_data->icc_data)) {
|
||||
CAM_ERR(CAM_UTIL, "failed in register bus client");
|
||||
rc = -EINVAL;
|
||||
goto error;
|
||||
|
Reference in New Issue
Block a user