diff options
author | Angel Pons <th3fanbus@gmail.com> | 2021-05-02 19:01:13 +0200 |
---|---|---|
committer | Edward O'Callaghan <quasisec@chromium.org> | 2021-05-09 03:33:22 +0000 |
commit | 2bbc0704c125761f985f847583947274e05f0d9c (patch) | |
tree | 2590d15b5e97edae71d109337b8059d653f7b38d | |
parent | 922e28b7dd867d244aeb0bf96724e58b130d3116 (diff) | |
download | flashrom-2bbc0704c125761f985f847583947274e05f0d9c.tar.gz flashrom-2bbc0704c125761f985f847583947274e05f0d9c.tar.bz2 flashrom-2bbc0704c125761f985f847583947274e05f0d9c.zip |
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 <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/52828
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
-rw-r--r-- | i2c_helper_linux.c | 3 |
1 files changed, 1 insertions, 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}; |