summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmad Fatoum <ahmad@a3f.at>2021-09-13 10:30:19 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2021-10-05 13:51:12 +0200
commit99ef347449fab1d4d35e4e78bdd21370b2400b04 (patch)
tree84d03ec01ae9bd21c49dcca8e06ac63a6d220b1d
parent3a1ab7ccebd47ba349e8ee0b12adc51826994976 (diff)
downloadbarebox-99ef347449fab1d4d35e4e78bdd21370b2400b04.tar.gz
barebox-99ef347449fab1d4d35e4e78bdd21370b2400b04.tar.xz
fs: remove unused struct fs_device_d::parent_device
The parent_device member is unused anywhere, so drop it. Signed-off-by: Ahmad Fatoum <ahmad@a3f.at> Link: https://lore.barebox.org/20210913083019.364599-1-ahmad@a3f.at Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--fs/fs.c1
-rw-r--r--include/fs.h1
2 files changed, 0 insertions, 2 deletions
diff --git a/fs/fs.c b/fs/fs.c
index b6431227d6..e6fd57b8ac 100644
--- a/fs/fs.c
+++ b/fs/fs.c
@@ -813,7 +813,6 @@ int fsdev_open_cdev(struct fs_device_d *fsdev)
}
fsdev->dev.parent = fsdev->cdev->dev;
- fsdev->parent_device = fsdev->cdev->dev;
return 0;
}
diff --git a/include/fs.h b/include/fs.h
index 5811199c01..cd5eb571e0 100644
--- a/include/fs.h
+++ b/include/fs.h
@@ -101,7 +101,6 @@ struct fs_device_d {
struct cdev *cdev;
bool loop;
char *path;
- struct device_d *parent_device;
struct list_head list;
char *options;
char *linux_rootarg;