summaryrefslogtreecommitdiff
path: root/src/simfs.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2010-10-11 20:14:24 -0500
committerDenis Kenzior <denkenz@gmail.com>2010-10-13 05:04:46 -0500
commit38fad92882493716d51055b1659d7429e0b61763 (patch)
tree96cda81ca37d109dc4ea824b5d89ed215293aa2e /src/simfs.c
parent096634e798a82beb54de90cffabf87f8de506bfc (diff)
downloadofono-38fad92882493716d51055b1659d7429e0b61763.tar.gz
simfs: Group lines logically
Diffstat (limited to 'src/simfs.c')
-rw-r--r--src/simfs.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/simfs.c b/src/simfs.c
index d743cd49..473fe087 100644
--- 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) {