OSDN Git Service

soc: qcom: smem: check sooner in qcom_smem_set_global_partition()
authorAlex Elder <elder@linaro.org>
Tue, 10 Apr 2018 22:25:42 +0000 (17:25 -0500)
committerAndy Gross <andy.gross@linaro.org>
Fri, 25 May 2018 20:53:56 +0000 (15:53 -0500)
commit11d2e7edac6ad221eaf14fdc9ea2f0ddf950a839
tree39c4893221d4ebaac15df69342bc88c363ab31da
parent8fa1a21409da6abfe890f66532f9fcd8d2c25a3d
soc: qcom: smem: check sooner in qcom_smem_set_global_partition()

There's no sense in scanning the partition table again if we know
the global partition has already been discovered.  Check for a
non-null global_partition pointer in qcom_smem_set_global_partition()
immediately.

Signed-off-by: Alex Elder <elder@linaro.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
drivers/soc/qcom/smem.c