projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup: remove dead assignment
[lttng-tools.git]
/
src
/
common
/
index
/
index.c
diff --git
a/src/common/index/index.c
b/src/common/index/index.c
index c94ec701c869f2df3bf61e2845409d3c46697131..ee73a0324c75467a7cd6706a6f9efa8b13b2659f 100644
(file)
--- a/
src/common/index/index.c
+++ b/
src/common/index/index.c
@@
-223,11
+223,7
@@
struct lttng_index_file *lttng_index_file_open(const char *path_name,
DBG("Index opening file %s in read only", fullpath);
read_fd = open(fullpath, O_RDONLY);
if (read_fd < 0) {
DBG("Index opening file %s in read only", fullpath);
read_fd = open(fullpath, O_RDONLY);
if (read_fd < 0) {
- if (errno == ENOENT) {
- ret = -ENOENT;
- } else {
- PERROR("opening index in read-only");
- }
+ PERROR("opening index in read-only");
goto error;
}
goto error;
}
@@
-271,7
+267,6
@@
error_close:
PERROR("close read fd %d", read_fd);
}
}
PERROR("close read fd %d", read_fd);
}
}
- ret = -1;
error:
free(index_file);
error:
free(index_file);
This page took
0.02463 seconds
and
5
git commands to generate.