commit | d8b51ea9cd3a2c89c93cdfc2bc69d598ded2be69 | [log] [tgz] |
---|---|---|
author | Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no> | Tue Nov 13 18:00:25 2018 +0100 |
committer | Anas Nashif <anas.nashif@intel.com> | Thu Nov 15 08:18:59 2018 -0500 |
tree | 44a7188ebec15046ab115d57afb5538c5a1ac0cc | |
parent | 3e390ed42dce67a642a86fb8481d6f0c18e10fff [diff] |
kernel: mem_domain: optimize sane partition checking This commit optimizes the process of checking that the added partitions in a mem_domain are sane. It places the sane_partition checking inside the loop of adding the partitions in the mem_domain, so that the checkings are not performed twice, and no partition is checked against itself. Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>