projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b86ff67
)
samples: configfs: don't reinitialize variables which are already zeroed
author
Bartosz Golaszewski
<bgolaszewski@baylibre.com>
Thu, 24 Sep 2020 12:45:22 +0000
(14:45 +0200)
committer
Christoph Hellwig
<hch@lst.de>
Wed, 7 Oct 2020 13:45:00 +0000
(15:45 +0200)
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>
samples/configfs/configfs_sample.c
patch
|
blob
|
history
diff --git
a/samples/configfs/configfs_sample.c
b/samples/configfs/configfs_sample.c
index 7cf1d44c1e3717e28fa37f87b97d2807b1396780..66bb9bc5c8d0baee125c2747256fdc8b71d3d62b 100644
(file)
--- 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;
}