Commit 3442d2c4 authored by Patrick Mochel's avatar Patrick Mochel

driverfs: Remove struct driver_dir_entry::files, since it's not being used anymore

parent eb46f652
......@@ -156,7 +156,6 @@ int device_bus_link(struct device * dev)
int device_create_dir(struct driver_dir_entry * dir, struct driver_dir_entry * parent)
{
INIT_LIST_HEAD(&dir->files);
dir->mode = (S_IFDIR| S_IRWXU | S_IRUGO | S_IXUGO);
return driverfs_create_dir(dir,parent);
}
......
......@@ -735,8 +735,6 @@ void driverfs_remove_file(struct driver_dir_entry * dir, const char * name)
dentry = lookup_hash(&qstr,dir->dentry);
if (!IS_ERR(dentry)) {
struct driver_file_entry * entry = dentry->d_fsdata;
/* make sure dentry is really there */
if (dentry->d_inode &&
(dentry->d_parent->d_inode == dir->dentry->d_inode)) {
......@@ -770,10 +768,8 @@ void driverfs_remove_dir(struct driver_dir_entry * dir)
node = dentry->d_subdirs.next;
while (node != &dentry->d_subdirs) {
struct dentry * d = list_entry(node,struct dentry,d_child);
struct driver_file_entry * entry = d->d_fsdata;
node = node->next;
driverfs_unlink(dentry->d_inode,d);
dput(dentry);
put_mount();
......
......@@ -30,7 +30,6 @@ struct driver_dir_entry {
char * name;
struct dentry * dentry;
mode_t mode;
struct list_head files;
};
struct device;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment