1/* SPDX-License-Identifier: LGPL-2.1-or-later */
2@@
3expression p;
4@@
5- if (p) {
6-         (void) sd_event_source_set_enabled(p, SD_EVENT_OFF);
7-         p = sd_event_source_unref(p);
8- }
9+ p = sd_event_source_disable_unref(p);
10@@
11expression p;
12@@
13- if (p) {
14-         sd_event_source_set_enabled(p, SD_EVENT_OFF);
15-         sd_event_source_unref(p);
16- }
17+ sd_event_source_disable_unref(p);
18@@
19expression p;
20@@
21- if (p) {
22-         (void) sd_event_source_set_enabled(p, SD_EVENT_OFF);
23-         sd_event_source_unref(p);
24- }
25+ sd_event_source_disable_unref(p);
26@@
27expression p;
28@@
29- (void) sd_event_source_set_enabled(p, SD_EVENT_OFF);
30- sd_event_source_unref(p);
31+ sd_event_source_disable_unref(p);
32@@
33expression p;
34@@
35- sd_event_source_set_enabled(p, SD_EVENT_OFF);
36- sd_event_source_unref(p);
37+ sd_event_source_disable_unref(p);
38