[PATCH 03/12] soc: qcom: smem: always ignore partitions with 0 offset or size

2018-05-01 Thread Alex Elder
In qcom_smem_enumerate_partitions(), any partition table entry having a zero offset or size field is ignored. Move those checks earlier in the loop, because there's no sense in examining the host fields for those entries. Add the same checks in qcom_smem_set_global_partition(), so the scan for

[PATCH 03/12] soc: qcom: smem: always ignore partitions with 0 offset or size

2018-05-01 Thread Alex Elder
In qcom_smem_enumerate_partitions(), any partition table entry having a zero offset or size field is ignored. Move those checks earlier in the loop, because there's no sense in examining the host fields for those entries. Add the same checks in qcom_smem_set_global_partition(), so the scan for