summaryrefslogtreecommitdiffstats
path: root/i2c_helper_linux.c
diff options
context:
space:
mode:
Diffstat (limited to 'i2c_helper_linux.c')
-rw-r--r--i2c_helper_linux.c3
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};