[PATCH 08/12] samples: configfs: don't reinitialize variables which are already zeroed
From: Bartosz Golaszewski
Date: Thu Sep 24 2020 - 08:45:56 EST
From: Bartosz Golaszewski <bgolaszewski@xxxxxxxxxxxx>
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@xxxxxxxxxxxx>
---
samples/configfs/configfs_sample.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/samples/configfs/configfs_sample.c b/samples/configfs/configfs_sample.c
index d89a1ffea620..20bf3b3e0f0f 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;
}
--
2.17.1