Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

memory: mvebu-devbus: Add missing braces to all arms of if statement

Add missing braces to all arms of if statement to align with coding
convention.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>

+3 -3
+3 -3
drivers/memory/mvebu-devbus.c
··· 124 124 * The bus width is encoded into the register as 0 for 8 bits, 125 125 * and 1 for 16 bits, so we do the necessary conversion here. 126 126 */ 127 - if (r->bus_width == 8) 127 + if (r->bus_width == 8) { 128 128 r->bus_width = 0; 129 - else if (r->bus_width == 16) 129 + } else if (r->bus_width == 16) { 130 130 r->bus_width = 1; 131 - else { 131 + } else { 132 132 dev_err(devbus->dev, "invalid bus width %d\n", r->bus_width); 133 133 return -EINVAL; 134 134 }