summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartosz Golaszewski <bgolaszewski@baylibre.com>2020-09-24 14:45:22 +0200
committerChristoph Hellwig <hch@lst.de>2020-10-07 15:45:00 +0200
commit91aad62560fc8cc11a1f04e627da0c0f0d33ef08 (patch)
tree2720c976c34c0316305877c35ffcdf1801a36be6
parentb86ff67d5a28f3ac1479d99b8a687e7107c58ae6 (diff)
downloadlinux-stable-91aad62560fc8cc11a1f04e627da0c0f0d33ef08.tar.gz
linux-stable-91aad62560fc8cc11a1f04e627da0c0f0d33ef08.tar.bz2
linux-stable-91aad62560fc8cc11a1f04e627da0c0f0d33ef08.zip
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>
-rw-r--r--samples/configfs/configfs_sample.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/samples/configfs/configfs_sample.c b/samples/configfs/configfs_sample.c
index 7cf1d44c1e37..66bb9bc5c8d0 100644
--- a/samples/configfs/configfs_sample.c
+++ b/samples/configfs/configfs_sample.c
@@ -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;
}