diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2019-04-08 10:17:15 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-04-08 10:17:15 +0200 |
commit | d44e3d642171fa506dcc5a6c1b2babe6b4b813bf (patch) | |
tree | f07ca08305b99b0c01ddd4775fd15b38ed7d0a67 /arch/mips | |
parent | c239b65fc2bc779343d7b8f0afd1c4cac1dd0beb (diff) | |
parent | 14ad13bfc3e83e7b9befb78b837d28427d8eacdf (diff) | |
download | barebox-d44e3d642171fa506dcc5a6c1b2babe6b4b813bf.tar.gz barebox-d44e3d642171fa506dcc5a6c1b2babe6b4b813bf.tar.xz |
Merge branch 'for-next/lseek'
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/mach-ath79/art.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/mach-ath79/art.c b/arch/mips/mach-ath79/art.c index 984d087363..2a2099e9f5 100644 --- a/arch/mips/mach-ath79/art.c +++ b/arch/mips/mach-ath79/art.c @@ -44,8 +44,8 @@ static int art_read_mac(struct device_d *dev, const char *file) fd = open_and_lseek(file, O_RDONLY, AR93000_EPPROM_OFFSET); if (fd < 0) { dev_err(dev, "Failed to open eeprom path %s %d\n", - file, fd); - return fd; + file, -errno); + return -errno; } rbytes = read_full(fd, &eeprom, sizeof(eeprom)); |