chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
shared: remove pointless checks in auto-cleanup functions
[elogind.git]
/
src
/
shared
/
set.c
diff --git
a/src/shared/set.c
b/src/shared/set.c
index cd910d70abbc403eb54ae8eb50871c36f93929d6..111d53bb36e6bd95d50348ddd03ed02e24d44a01 100644
(file)
--- a/
src/shared/set.c
+++ b/
src/shared/set.c
@@
-38,11
+38,7
@@
void set_free(Set* s) {
}
void set_freep(Set **s) {
}
void set_freep(Set **s) {
- if (!s)
- return;
-
set_free(*s);
set_free(*s);
- *s = NULL;
}
void set_free_free(Set *s) {
}
void set_free_free(Set *s) {
@@
-50,11
+46,7
@@
void set_free_free(Set *s) {
}
void set_free_freep(Set **s) {
}
void set_free_freep(Set **s) {
- if (!*s)
- return;
-
set_free_free(*s);
set_free_free(*s);
- *s = NULL;
}
int set_ensure_allocated(Set **s, hash_func_t hash_func, compare_func_t compare_func) {
}
int set_ensure_allocated(Set **s, hash_func_t hash_func, compare_func_t compare_func) {