]> git.baikalelectronics.ru Git - arm-tf.git/commit
fix(brcm): add braces around bodies of conditionals
authorBoyan Karatotev <boyan.karatotev@arm.com>
Tue, 22 Nov 2022 14:05:18 +0000 (14:05 +0000)
committerBoyan Karatotev <boyan.karatotev@arm.com>
Thu, 1 Dec 2022 16:17:34 +0000 (16:17 +0000)
commit9f58bfbbe90d2891c289cd27ab7d2ede8b5572d4
tree88ff7b345b540c0bf882159a269cb82ab13c9f92
parent90c4b3b62d5303c22fdc5f65f0db784de0f4ac95
fix(brcm): add braces around bodies of conditionals

On release builds EMMC_TRACE doesn't expand to anything. Some
conditionals with no braces end up with empty bodies. This produces a
warning when compiling with -Werror=empty-body (enabled by -Wextra).

Since TF-A coding guidelines require braces to comply with MISRA
guidelines anyway, add them in the whole file.

Signed-off-by: Boyan Karatotev <boyan.karatotev@arm.com>
Change-Id: Ib4e691efc7acdb8fb8692278c7a9772fc894f77f
drivers/brcm/emmc/emmc_csl_sdcard.c
drivers/brcm/emmc/emmc_pboot_hal_memory_drv.c