mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 14:13:01 -04:00
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:
parent
786e1d8bd1
commit
1666f6b6d4
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue