]> git.baikalelectronics.ru Git - kernel.git/commit
samples: configfs: don't reinitialize variables which are already zeroed
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Thu, 24 Sep 2020 12:45:22 +0000 (14:45 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 7 Oct 2020 13:45:00 +0000 (15:45 +0200)
commite03394295914f7fecef612d66afe3a22adf69c5f
tree2720c976c34c0316305877c35ffcdf1801a36be6
parent4ea786b8117fa39aee34db1361a131fae8ac8ba0
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>
samples/configfs/configfs_sample.c