diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-04-05 07:26:26 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-04-05 07:26:26 +0200 |
commit | 1cc6c93a9569a9f2664d0d26cd0e50408307c430 (patch) | |
tree | 57e115a1beb9b097f731da79c3192015ff35cc94 /src/rfkill | |
parent | network: fix typo in log message (diff) | |
download | systemd-1cc6c93a9569a9f2664d0d26cd0e50408307c430.tar.xz systemd-1cc6c93a9569a9f2664d0d26cd0e50408307c430.zip |
tree-wide: use TAKE_PTR() and TAKE_FD() macros
Diffstat (limited to 'src/rfkill')
-rw-r--r-- | src/rfkill/rfkill.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rfkill/rfkill.c b/src/rfkill/rfkill.c index ff951450b5..bae3aec175 100644 --- a/src/rfkill/rfkill.c +++ b/src/rfkill/rfkill.c @@ -319,10 +319,9 @@ static int save_state_queue( if (!item) return -ENOMEM; - item->file = state_file; + item->file = TAKE_PTR(state_file); item->rfkill_idx = event->idx; item->state = event->soft; - state_file = NULL; LIST_APPEND(queue, *write_queue, item); |