From: Bartosz Golaszewski Date: Thu, 24 Sep 2020 12:45:22 +0000 (+0200) Subject: samples: configfs: don't reinitialize variables which are already zeroed X-Git-Tag: v5.10.7~1413^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=91aad62560fc8cc11a1f04e627da0c0f0d33ef08;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Christoph Hellwig --- diff --git a/samples/configfs/configfs_sample.c b/samples/configfs/configfs_sample.c index 7cf1d44..66bb9bc 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; }