1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-11 09:18:07 +03:00

udevd: drop unused refcount

This commit is contained in:
Yu Watanabe 2018-08-28 14:02:37 +09:00
parent 8f71a0d163
commit bd696b953e

View File

@ -124,7 +124,6 @@ enum worker_state {
struct worker {
Manager *manager;
int refcount;
pid_t pid;
struct udev_monitor *monitor;
enum worker_state state;
@ -202,7 +201,6 @@ static int worker_new(struct worker **ret, Manager *manager, struct udev_monitor
if (!worker)
return -ENOMEM;
worker->refcount = 1;
worker->manager = manager;
/* close monitor, but keep address around */
udev_monitor_disconnect(worker_monitor);