mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
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>
This commit is contained in:
parent
b86ff67d5a
commit
91aad62560
1 changed files with 0 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue