tree-wide: use nested ASSERT_PTR

This commit is contained in:
David Tardon
2022-09-14 08:21:42 +02:00
parent 23cd002562
commit fbd747a46f
4 changed files with 6 additions and 30 deletions
+1 -5
View File
@@ -95,13 +95,9 @@ static int idle_time_cb(sd_event_source *s, uint64_t usec, void *userdata) {
}
static int connection_release(Connection *c) {
Context *context;
Context *context = ASSERT_PTR(ASSERT_PTR(c)->context);
int r;
assert(c);
context = ASSERT_PTR(c->context);
connection_free(c);
if (arg_exit_idle_time < USEC_INFINITY && set_isempty(context->connections)) {