commit | 74b3c58f537c3d77ad876ad2ee9dac2076d49475 | [log] [tgz] |
---|---|---|
author | David Brown <david.brown@linaro.org> | Tue Apr 11 17:39:25 2017 -0600 |
committer | David Brown <david.brown@linaro.org> | Tue Apr 11 17:59:05 2017 -0600 |
tree | cf52c0e688b590ab7d5fc7dc2257f020d2914fa6 | |
parent | 0d0652a10ff2cef288b7595e74a5a24c789c35c7 [diff] [blame] |
zephyr: Add braces around single lines The coding guidelines for mcuboot specify using braces around all single-line constructs. Add these to those lines missing this.
diff --git a/boot/zephyr/os.c b/boot/zephyr/os.c index 3b910d5..0a5abbd 100644 --- a/boot/zephyr/os.c +++ b/boot/zephyr/os.c
@@ -32,8 +32,9 @@ * calls only come from within the app. */ size_t total = nelem * size; void *buf = k_malloc(total); - if (buf) + if (buf) { memset(buf, 0, total); + } return buf; }