mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-27 23:22:37 +02:00
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>
This commit is contained in:
parent
922e28b7dd
commit
2bbc0704c1
@ -50,13 +50,12 @@ int i2c_open_path(const char *path, uint16_t addr, int force)
|
|||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
msg_perr("Unable to set I2C slave address to 0x%02x: %s.\n", addr, strerror(errno));
|
msg_perr("Unable to set I2C slave address to 0x%02x: %s.\n", addr, strerror(errno));
|
||||||
i2c_close(fd);
|
i2c_close(fd);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
return fd;
|
return fd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int i2c_open(int bus, uint16_t addr, int force)
|
int i2c_open(int bus, uint16_t addr, int force)
|
||||||
{
|
{
|
||||||
char dev[sizeof(I2C_DEV_PREFIX)] = {0};
|
char dev[sizeof(I2C_DEV_PREFIX)] = {0};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user