Skip to content

Commit 91aad62

Browse files
brglChristoph Hellwig
authored andcommitted
samples: configfs: don't reinitialize variables which are already zeroed
The structure containing the storeme field is allocated using kzalloc(). There's no need to set it to 0 again. Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
1 parent b86ff67 commit 91aad62

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

samples/configfs/configfs_sample.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,6 @@ static struct config_item *simple_children_make_item(struct config_group *group,
192192
config_item_init_type_name(&simple_child->item, name,
193193
&simple_child_type);
194194

195-
simple_child->storeme = 0;
196-
197195
return &simple_child->item;
198196
}
199197

0 commit comments

Comments
 (0)