Skip to content

Commit cd7752c

Browse files
committed
fsnotify: fsnotify_obtain_group kzalloc cleanup
fsnotify_obtain_group uses kzalloc but then proceedes to set things to 0. This patch just deletes those useless lines. Signed-off-by: Eric Paris <eparis@redhat.com>
1 parent 74be0cc commit cd7752c

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎fs/notify/group.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,17 +178,14 @@ struct fsnotify_group *fsnotify_obtain_group(__u32 mask,
178178

179179
atomic_set(&group->refcnt, 1);
180180

181-
group->on_group_list = 0;
182181
group->mask = mask;
183182

184183
mutex_init(&group->notification_mutex);
185184
INIT_LIST_HEAD(&group->notification_list);
186185
init_waitqueue_head(&group->notification_waitq);
187-
group->q_len = 0;
188186
group->max_events = UINT_MAX;
189187

190188
spin_lock_init(&group->mark_lock);
191-
atomic_set(&group->num_marks, 0);
192189
INIT_LIST_HEAD(&group->mark_entries);
193190

194191
group->ops = ops;

0 commit comments

Comments
 (0)