From d78d7b5863f174d036a60e09218209f7ae123006 Mon Sep 17 00:00:00 2001 From: Amit Blay Date: Mon, 21 May 2018 08:47:11 +0300 Subject: [PATCH] soc: qcom: scm_qcpe: Fix unused variable warning Fix an unused variable warning when GHS flag is not defined. Change-Id: Icd5b8bbb0e1bd7bedbaa6c806889d21213cb23f2 Signed-off-by: Amit Blay --- drivers/soc/qcom/scm_qcpe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soc/qcom/scm_qcpe.c b/drivers/soc/qcom/scm_qcpe.c index c9df0957f359..4b44d9694092 100644 --- a/drivers/soc/qcom/scm_qcpe.c +++ b/drivers/soc/qcom/scm_qcpe.c @@ -416,11 +416,11 @@ static int scm_call_qcpe(u32 fn_id, struct scm_desc *desc) static bool opened; static u32 handle; u32 size_bytes; - int i; - uint64_t arglen = desc->arginfo & 0xf; struct smc_params_s smc_params = {0,}; int ret; #ifdef CONFIG_GHS_VMM + int i; + uint64_t arglen = desc->arginfo & 0xf; struct ion_handle *ihandle = NULL; #endif