aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Elder <elder@linaro.org>2018-06-25 20:58:54 -0400
committerAndy Gross <andy.gross@linaro.org>2018-09-13 17:57:08 -0400
commit33fdbc4e5caf7ef6e7114adeab7a4a4578307ff3 (patch)
tree57a29799b2e48d765e73ed2b9ba9d2d1bfcd8d83
parent380dc4af50a61eaa8b749fac2e7e40ebf92079aa (diff)
soc: qcom: smem: small change in global entry loop
Change the logic in the loop that finds that global host entry in the partition table not require the host0 and host1 local variables. The next patch will remove them. Signed-off-by: Alex Elder <elder@linaro.org> Signed-off-by: Andy Gross <andy.gross@linaro.org>
-rw-r--r--drivers/soc/qcom/smem.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/soc/qcom/smem.c b/drivers/soc/qcom/smem.c
index a94888c26e18..5b5cf45e2ef7 100644
--- a/drivers/soc/qcom/smem.c
+++ b/drivers/soc/qcom/smem.c
@@ -785,9 +785,10 @@ static int qcom_smem_set_global_partition(struct qcom_smem *smem)
785 if (!le32_to_cpu(entry->size)) 785 if (!le32_to_cpu(entry->size))
786 continue; 786 continue;
787 787
788 host0 = le16_to_cpu(entry->host0); 788 if (le16_to_cpu(entry->host0) != SMEM_GLOBAL_HOST)
789 host1 = le16_to_cpu(entry->host1); 789 continue;
790 if (host0 == SMEM_GLOBAL_HOST && host0 == host1) { 790
791 if (le16_to_cpu(entry->host1) == SMEM_GLOBAL_HOST) {
791 found = true; 792 found = true;
792 break; 793 break;
793 } 794 }