]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
varlink: fix dead code
authorLuca Boccassi <bluca@debian.org>
Tue, 13 Feb 2024 17:42:59 +0000 (17:42 +0000)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 13 Feb 2024 21:43:59 +0000 (21:43 +0000)
'e' is already checked in the previous branch, no need to check it again,
it cannot be NULL.

CID#1534465

Follow-up for 9bca9891834e0e71484e2e1b38ac59b3ce257043

src/shared/varlink.c

index 8a5a9907a8aa3f025080255f5049bf5425337695..fa51b84cd4a283cd001a3eb523968f71ce0373ac 100644 (file)
@@ -2397,7 +2397,7 @@ int varlink_collect_full(
                                 if (ret_parameters)
                                         *ret_parameters = p;
                                 if (ret_error_id)
-                                        *ret_error_id = e ? json_variant_string(e) : NULL;
+                                        *ret_error_id = json_variant_string(e);
                                 if (ret_flags)
                                         *ret_flags = v->current_reply_flags;