Skip to content

Commit bf8fba4

Browse files
committed
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>
1 parent 7f04614 commit bf8fba4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎drivers/memory/mvebu-devbus.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,11 @@ static int devbus_get_timing_params(struct devbus *devbus,
124124
* The bus width is encoded into the register as 0 for 8 bits,
125125
* and 1 for 16 bits, so we do the necessary conversion here.
126126
*/
127-
if (r->bus_width == 8)
127+
if (r->bus_width == 8) {
128128
r->bus_width = 0;
129-
else if (r->bus_width == 16)
129+
} else if (r->bus_width == 16) {
130130
r->bus_width = 1;
131-
else {
131+
} else {
132132
dev_err(devbus->dev, "invalid bus width %d\n", r->bus_width);
133133
return -EINVAL;
134134
}

0 commit comments

Comments
 (0)