diff options
author | Simon Busch <morphis@gravedo.de> | 2012-02-23 09:12:45 +0100 |
---|---|---|
committer | Simon Busch <morphis@gravedo.de> | 2012-02-23 09:12:45 +0100 |
commit | e9d4545c389035224dde38df339de49e5efb41fd (patch) | |
tree | a769c90d8eb75f398d1a3cb37a03cf15838df425 /samsung-ipc | |
parent | bf757ad22ef15cae7d884e32243c474eb2cd5d4e (diff) | |
download | external_libsamsung-ipc-e9d4545c389035224dde38df339de49e5efb41fd.zip external_libsamsung-ipc-e9d4545c389035224dde38df339de49e5efb41fd.tar.gz external_libsamsung-ipc-e9d4545c389035224dde38df339de49e5efb41fd.tar.bz2 |
rfs: it should be possible for the modem to write at offset zero
Diffstat (limited to 'samsung-ipc')
-rw-r--r-- | samsung-ipc/rfs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/samsung-ipc/rfs.c b/samsung-ipc/rfs.c index b4804a0..3184eff 100644 --- a/samsung-ipc/rfs.c +++ b/samsung-ipc/rfs.c @@ -539,8 +539,8 @@ int nv_data_read(struct ipc_client *client, int offset, int length, char *buf) ipc_client_log(client, "nv_data_read: enter\n"); - if (offset <= 0 || length <= 0) { - ipc_client_log(client, "nv_data_read: offset or length <= 0\n"); + if(offset < 0 || length <= 0) { + ipc_client_log(client, "nv_data_read: offset < 0 or length <= 0\n"); return -1; } @@ -579,7 +579,7 @@ int nv_data_write(struct ipc_client *client, int offset, int length, char *buf) ipc_client_log(client, "nv_data_write: enter\n"); - if (offset <= 0 || length <= 0) { + if(offset < 0 || length <= 0) { ipc_client_log(client, "nv_data_write: offset or length <= 0\n"); return -1; } |