diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2020-06-11 11:54:44 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-07-05 16:17:12 +0200 |
commit | 925f7bbcaa875fceac6cec73ec2ec99d1cda5207 (patch) | |
tree | 613f7c29ec2a6f355264dfaea26f35acc72354de /fs | |
parent | 5e085f7019e14ea6e1e489a351bc82f6cbe3f652 (diff) | |
download | barebox-925f7bbcaa875fceac6cec73ec2ec99d1cda5207.tar.gz barebox-925f7bbcaa875fceac6cec73ec2ec99d1cda5207.tar.xz |
fs: ramfs: Drop dead code
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ramfs.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/fs/ramfs.c b/fs/ramfs.c index 800b03af29..2b6df07996 100644 --- a/fs/ramfs.c +++ b/fs/ramfs.c @@ -34,9 +34,6 @@ struct ramfs_chunk { struct ramfs_inode { struct inode inode; char *name; - struct ramfs_inode *parent; - struct ramfs_inode *next; - struct ramfs_inode *child; char *symlink; ulong mode; @@ -53,10 +50,6 @@ static inline struct ramfs_inode *to_ramfs_inode(struct inode *inode) return container_of(inode, struct ramfs_inode, inode); } -struct ramfs_priv { - struct ramfs_inode root; -}; - /* ---------------------------------------------------------------*/ static const struct super_operations ramfs_ops; @@ -411,16 +404,9 @@ static const struct super_operations ramfs_ops = { static int ramfs_probe(struct device_d *dev) { struct inode *inode; - struct ramfs_priv *priv = xzalloc(sizeof(struct ramfs_priv)); struct fs_device_d *fsdev = dev_to_fs_device(dev); struct super_block *sb = &fsdev->sb; - dev->priv = priv; - - priv->root.name = "/"; - priv->root.mode = S_IFDIR | S_IRWXU | S_IRWXG | S_IRWXO; - priv->root.parent = &priv->root; - sb->s_op = &ramfs_ops; inode = ramfs_get_inode(sb, NULL, S_IFDIR); |