aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-12-16 15:01:09 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-12-16 15:09:22 +0100
commit0d09e75f9ca09ddbfe10117f2f4caa8993eb9144 (patch)
tree5d88237cc6b0fc80954f04a0f4152cbdbed43bad
parent42cc96e2c1edb6863909ef460770bd9e0b23ad58 (diff)
eeprom: Fix brown paper bag introduced a long while ago
91d204e2db8f53a6ae4827ecc4b0ccb0137375d0 while adding checks to resolve coverity issues. We simply had no one writing to the eeprom so this was unnoticed for a long time.
-rw-r--r--src/osmo-bts-sysmo/eeprom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osmo-bts-sysmo/eeprom.c b/src/osmo-bts-sysmo/eeprom.c
index 7b579cd6..8b2c1175 100644
--- a/src/osmo-bts-sysmo/eeprom.c
+++ b/src/osmo-bts-sysmo/eeprom.c
@@ -1388,7 +1388,7 @@ static int eeprom_write( int addr, int size, const char *pBuff )
}
g_file = f;
}
- if (fseek( f, addr, SEEK_SET ) == 0)
+ if (fseek( f, addr, SEEK_SET ) != 0)
{
perror( "eeprom fseek" );
n = -1;