Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 451613c3 authored by Swetha Chikkaboraiah's avatar Swetha Chikkaboraiah Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarSwetha Chikkaboraiah <schikk@codeaurora.org>
parent 9fdd00c8
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
/* 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
 * 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
 * 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;
	int rc = 0;


	if (!pdev || !&pdev->dev || !clk_info || !clk_ptr || !num_clk)
	if (!pdev || !clk_info || !clk_ptr || !num_clk)
		return -EINVAL;
		return -EINVAL;


	rc = msm_camera_get_clk_info_internal(&pdev->dev,
	rc = msm_camera_get_clk_info_internal(&pdev->dev,