diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2022-09-05 11:55:32 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-09-12 12:01:49 +0200 |
commit | 8a9e2bc8bd3832b168add96f15a130086221930c (patch) | |
tree | cac82053b5b314f1d6853d2a875188756b897480 /fs | |
parent | c5b6061c18a8947a6034e426a3c8201f1f97b6ef (diff) | |
download | barebox-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |