diff options
-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 77445052..963c3996 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}; |