timerfd_create: initial reference count to zero

nx_open in timerfd_create will increase reference count,
Therefore, the reference count starts with a value of 0.

Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
dongjiuzhu1 2022-12-01 10:16:22 +08:00 committed by Xiang Xiao
parent c4535ee66a
commit b1b2a7cc0b
1 changed files with 0 additions and 3 deletions

View File

@ -544,9 +544,6 @@ int timerfd_create(int clockid, int flags)
/* Initialize the timer instance */
new_dev->clock = clockid;
new_dev->crefs = 1;
new_dev->delay = 0;
new_dev->counter = 0;
/* Request a unique minor device number */