summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2022-09-05 11:55:32 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2022-09-12 12:01:49 +0200
commit8a9e2bc8bd3832b168add96f15a130086221930c (patch)
treecac82053b5b314f1d6853d2a875188756b897480 /fs
parentc5b6061c18a8947a6034e426a3c8201f1f97b6ef (diff)
downloadbarebox-8a9e2bc8bd3832b168add96f15a130086221930c.tar.gz
fs: remove never-read initializer in mount_all()
list_for_each_entry will initialize cdev for each iteration, so the initial assignment is never used, thus drop it. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220905095557.596891-8-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'fs')
-rw-r--r--fs/fs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fs.c b/fs/fs.c
index bd6f144742..b69123a953 100644
--- a/fs/fs.c
+++ b/fs/fs.c
@@ -1014,7 +1014,7 @@ void mount_all(void)
device_detect(dev);
for_each_block_device(bdev) {
- struct cdev *cdev = &bdev->cdev;
+ struct cdev *cdev;
list_for_each_entry(cdev, &bdev->dev->cdevs, devices_list)
cdev_mount_default(cdev, NULL);