summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSwetha Chikkaboraiah <schikk@codeaurora.org>2020-06-02 20:09:51 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2020-06-08 04:12:59 -0700
commit451613c32f3e7da2c0ebb9e0768fdf26abd0542a (patch)
treee682c6c0755ceef49ded802cd3684312519bdebf
parent9fdd00c86e4532613dee1f730ee7af31e9775210 (diff)
ais: cam_soc_api: Fix compilation error
Fix below compilation error warning: address of 'pdev->dev' will always evaluate to 'true' [-Wpointer-bool-conversion]. Change-Id: I1ed3026b6689aae029dde35fe1a0556375b84872 Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>
-rw-r--r--drivers/media/platform/msm/ais/common/cam_soc_api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/platform/msm/ais/common/cam_soc_api.c b/drivers/media/platform/msm/ais/common/cam_soc_api.c
index 6c0e188adb75..22d986304596 100644
--- a/drivers/media/platform/msm/ais/common/cam_soc_api.c
+++ b/drivers/media/platform/msm/ais/common/cam_soc_api.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2015-2019, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2015-2020, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -210,7 +210,7 @@ int msm_camera_get_clk_info(struct platform_device *pdev,
{
int rc = 0;
- if (!pdev || !&pdev->dev || !clk_info || !clk_ptr || !num_clk)
+ if (!pdev || !clk_info || !clk_ptr || !num_clk)
return -EINVAL;
rc = msm_camera_get_clk_info_internal(&pdev->dev,