summaryrefslogtreecommitdiffstats
path: root/src/import
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2024-06-12 11:42:14 +0200
committerGitHub <noreply@github.com>2024-06-12 11:42:14 +0200
commita07c903a386a88276ce3be1a87f89ddb1b5b4573 (patch)
treef01963275825c46e2217e902ce4a519e3ca42e3d /src/import
parentMerge pull request #32972 from keszybz/small-cleanups (diff)
parentsd-event: use consistent style for '*' in signatures (diff)
downloadsystemd-a07c903a386a88276ce3be1a87f89ddb1b5b4573.tar.xz
systemd-a07c903a386a88276ce3be1a87f89ddb1b5b4573.zip
Merge pull request #33071 from keszybz/sd_event_source-cleanup
Clean up calls to sd_event_source_set_enabled()
Diffstat (limited to 'src/import')
-rw-r--r--src/import/curl-util.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/import/curl-util.c b/src/import/curl-util.c
index 1628f833a9..4b65f4619f 100644
--- a/src/import/curl-util.c
+++ b/src/import/curl-util.c
@@ -142,10 +142,8 @@ static int curl_glue_timer_callback(CURLM *curl, long timeout_ms, void *userdata
}
if (timeout_ms < 0) {
- if (g->timer) {
- if (sd_event_source_set_enabled(g->timer, SD_EVENT_OFF) < 0)
- return -1;
- }
+ if (sd_event_source_set_enabled(g->timer, SD_EVENT_OFF) < 0)
+ return -1;
return 0;
}