Commit bf8fba45 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski

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: default avatarKrzysztof Kozlowski <krzk@kernel.org>
parent 7f04614b
...@@ -124,11 +124,11 @@ static int devbus_get_timing_params(struct devbus *devbus, ...@@ -124,11 +124,11 @@ static int devbus_get_timing_params(struct devbus *devbus,
* The bus width is encoded into the register as 0 for 8 bits, * The bus width is encoded into the register as 0 for 8 bits,
* and 1 for 16 bits, so we do the necessary conversion here. * and 1 for 16 bits, so we do the necessary conversion here.
*/ */
if (r->bus_width == 8) if (r->bus_width == 8) {
r->bus_width = 0; r->bus_width = 0;
else if (r->bus_width == 16) } else if (r->bus_width == 16) {
r->bus_width = 1; r->bus_width = 1;
else { } else {
dev_err(devbus->dev, "invalid bus width %d\n", r->bus_width); dev_err(devbus->dev, "invalid bus width %d\n", r->bus_width);
return -EINVAL; return -EINVAL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment