From 2bbc0704c125761f985f847583947274e05f0d9c Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Sun, 2 May 2021 19:01:13 +0200 Subject: i2c_helper_linux: Clean up whitespace a bit Use tabs to indent code and drop an unnecessary newline. Change-Id: I8fe4a8b9213677e0d0bee9681abf94726c934cc6 Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/c/flashrom/+/52828 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan Reviewed-by: Anastasia Klimchuk --- i2c_helper_linux.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/i2c_helper_linux.c b/i2c_helper_linux.c index 774450527..963c39965 100644 --- a/i2c_helper_linux.c +++ b/i2c_helper_linux.c @@ -50,13 +50,12 @@ int i2c_open_path(const char *path, uint16_t addr, int force) if (ret < 0) { msg_perr("Unable to set I2C slave address to 0x%02x: %s.\n", addr, strerror(errno)); i2c_close(fd); - return ret; + return ret; } return fd; } - int i2c_open(int bus, uint16_t addr, int force) { char dev[sizeof(I2C_DEV_PREFIX)] = {0}; -- cgit v1.2.3