diff options
author | Tejun Heo <htejun@gmail.com> | 2007-09-20 03:05:11 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-10-12 17:51:10 -0400 |
commit | b1fc3d6144d56360d1373b01c7881826f558b6cd (patch) | |
tree | 3bac4c3df21dc74c6373c3e4a22c3ea6b01b1832 /fs/sysfs/dir.c | |
parent | 078ce6409ca54d5fc6eb7d2147cd6efc3eb09078 (diff) |
sysfs: make s_elem an anonymous union
Make s_elem an anonymous union. Prefixing with s_elem makes things
needlessly longer without any advantage.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/sysfs/dir.c')
-rw-r--r-- | fs/sysfs/dir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/sysfs/dir.c b/fs/sysfs/dir.c index fc615eed67dc..6ee76a82eb38 100644 --- a/fs/sysfs/dir.c +++ b/fs/sysfs/dir.c | |||
@@ -273,7 +273,7 @@ void release_sysfs_dirent(struct sysfs_dirent * sd) | |||
273 | parent_sd = sd->s_parent; | 273 | parent_sd = sd->s_parent; |
274 | 274 | ||
275 | if (sysfs_type(sd) == SYSFS_KOBJ_LINK) | 275 | if (sysfs_type(sd) == SYSFS_KOBJ_LINK) |
276 | sysfs_put(sd->s_elem.symlink.target_sd); | 276 | sysfs_put(sd->s_symlink.target_sd); |
277 | if (sysfs_type(sd) & SYSFS_COPY_NAME) | 277 | if (sysfs_type(sd) & SYSFS_COPY_NAME) |
278 | kfree(sd->s_name); | 278 | kfree(sd->s_name); |
279 | kfree(sd->s_iattr); | 279 | kfree(sd->s_iattr); |
@@ -630,7 +630,7 @@ static int create_dir(struct kobject *kobj, struct sysfs_dirent *parent_sd, | |||
630 | sd = sysfs_new_dirent(name, mode, SYSFS_DIR); | 630 | sd = sysfs_new_dirent(name, mode, SYSFS_DIR); |
631 | if (!sd) | 631 | if (!sd) |
632 | return -ENOMEM; | 632 | return -ENOMEM; |
633 | sd->s_elem.dir.kobj = kobj; | 633 | sd->s_dir.kobj = kobj; |
634 | 634 | ||
635 | /* link in */ | 635 | /* link in */ |
636 | sysfs_addrm_start(&acxt, parent_sd); | 636 | sysfs_addrm_start(&acxt, parent_sd); |