Frans Hendriks has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/50190 )
Change subject: device/i2c_bus.c: Correct code style ......................................................................
device/i2c_bus.c: Correct code style
device: Correct code style
Revise the following aspects to follow coreboot's coding style: - Drop braces for single-statement condition. - Remove line feeds.
BUG = N/A TEST = Build Compulab Intense-PC with secure oprom enabled
Change-Id: I78ce97b0ce1587119a71893c867c2dd062552a31 Signed-off-by: Frans Hendriks fhendriks@eltan.com --- M src/device/i2c_bus.c 1 file changed, 3 insertions(+), 6 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/90/50190/1
diff --git a/src/device/i2c_bus.c b/src/device/i2c_bus.c index 93ec854..249c7c6 100644 --- a/src/device/i2c_bus.c +++ b/src/device/i2c_bus.c @@ -25,10 +25,9 @@ link = NULL; }
- if (!link) { + if (!link) printk(BIOS_ALERT, "%s Cannot find I2C or SMBus bus operations", dev_path(dev)); - }
return link; } @@ -79,8 +78,7 @@ return busdev->ops->ops_smbus_bus->send_byte(dev, val); }
- printk(BIOS_ERR, "%s Missing ops_smbus_bus->send_byte", - dev_path(busdev)); + printk(BIOS_ERR, "%s Missing ops_smbus_bus->send_byte", dev_path(busdev)); return -1; }
@@ -140,8 +138,7 @@ return busdev->ops->ops_smbus_bus->write_byte(dev, off, val); }
- printk(BIOS_ERR, "%s Missing ops_smbus_bus->write_byte", - dev_path(busdev)); + printk(BIOS_ERR, "%s Missing ops_smbus_bus->write_byte", dev_path(busdev)); return -1; }