Commit 91aad625 authored by Bartosz Golaszewski's avatar Bartosz Golaszewski Committed by Christoph Hellwig

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: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent b86ff67d
......@@ -192,8 +192,6 @@ static struct config_item *simple_children_make_item(struct config_group *group,
config_item_init_type_name(&simple_child->item, name,
&simple_child_type);
simple_child->storeme = 0;
return &simple_child->item;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment