projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove unused label
[lttng-ust.git]
/
libringbuffer
/
shm.c
diff --git
a/libringbuffer/shm.c
b/libringbuffer/shm.c
index 36f7e36b6a573dc2738b4444d92da563ed5830c9..fda4a319c52982436a92ce5bb600d12c5b1097a7 100644
(file)
--- a/
libringbuffer/shm.c
+++ b/
libringbuffer/shm.c
@@
-82,11
+82,7
@@
struct shm_object *shm_object_table_append(struct shm_object_table *table,
PERROR("shm_open");
goto error_shm_open;
}
PERROR("shm_open");
goto error_shm_open;
}
- ret = shm_unlink("ust-shm-tmp");
- if (ret) {
- PERROR("shm_unlink");
- goto error_unlink;
- }
+ (void) shm_unlink("ust-shm-tmp");
ret = ftruncate(shmfd, memory_map_size);
if (ret) {
PERROR("ftruncate");
ret = ftruncate(shmfd, memory_map_size);
if (ret) {
PERROR("ftruncate");
@@
-110,7
+106,6
@@
struct shm_object *shm_object_table_append(struct shm_object_table *table,
error_mmap:
error_ftruncate:
error_mmap:
error_ftruncate:
-error_unlink:
ret = close(shmfd);
if (ret) {
PERROR("close");
ret = close(shmfd);
if (ret) {
PERROR("close");
This page took
0.025712 seconds
and
4
git commands to generate.