Skip to content

Commit

Permalink
sysfs, kernfs: drop unused params from sysfs_fill_super()
Browse files Browse the repository at this point in the history
sysfs_fill_super() takes three params - @sb, @DaTa and @silent - but
uses only @sb.  Drop the latter two.

Signed-off-by: Tejun Heo <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
htejun authored and gregkh committed Nov 30, 2013
1 parent 2072f1a commit ccc532d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/sysfs/mount.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ struct sysfs_dirent sysfs_root = {
.s_ino = 1,
};

static int sysfs_fill_super(struct super_block *sb, void *data, int silent)
static int sysfs_fill_super(struct super_block *sb)
{
struct inode *inode;
struct dentry *root;
Expand Down Expand Up @@ -123,7 +123,7 @@ static struct dentry *sysfs_mount(struct file_system_type *fs_type,
if (IS_ERR(sb))
return ERR_CAST(sb);
if (!sb->s_root) {
error = sysfs_fill_super(sb, data, flags & MS_SILENT ? 1 : 0);
error = sysfs_fill_super(sb);
if (error) {
deactivate_locked_super(sb);
return ERR_PTR(error);
Expand Down

0 comments on commit ccc532d

Please sign in to comment.