projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
096634e
)
simfs: Group lines logically
author
Denis Kenzior
<denkenz@gmail.com>
Tue, 12 Oct 2010 01:14:24 +0000
(20:14 -0500)
committer
Denis Kenzior
<denkenz@gmail.com>
Wed, 13 Oct 2010 10:04:46 +0000
(
05:04
-0500)
src/simfs.c
patch
|
blob
|
history
diff --git
a/src/simfs.c
b/src/simfs.c
index
d743cd4
..
473fe08
100644
(file)
--- a/
src/simfs.c
+++ b/
src/simfs.c
@@
-763,9
+763,7
@@
char *sim_fs_get_cached_image(struct sim_fs *fs, int id)
path = g_strdup_printf(SIM_IMAGE_CACHE_PATH, imsi, phase, id);
TFR(stat(path, &st_buf));
-
fd = TFR(open(path, O_RDONLY));
-
g_free(path);
if (fd < 0)
@@
-780,7
+778,6
@@
char *sim_fs_get_cached_image(struct sim_fs *fs, int id)
}
len = TFR(read(fd, buffer, image_length));
-
TFR(close(fd));
if (len != image_length) {