summaryrefslogtreecommitdiff
path: root/fs/gfs2/ops_fstype.c
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2006-09-04 19:32:10 (GMT)
committerSteven Whitehouse <swhiteho@redhat.com>2006-09-04 19:32:10 (GMT)
commit26c1a57412b59a2284a521c711d9e9105bb6ad23 (patch)
tree5f508bfbdc5a97fbb030194fc069feeb7f2195db /fs/gfs2/ops_fstype.c
parent0bd5996a00346fee772cbdebc5666fd4e514089b (diff)
downloadlinux-fsl-qoriq-26c1a57412b59a2284a521c711d9e9105bb6ad23.tar.xz
[GFS2] More code style updates
As per Jan Engelhardt's fifth email. This has most of the changes recommended, which is the removal of casts which are not required, some indenting fixes and similar. Cc: Jan Engelhardt <jengelh@linux01.gwdg.de> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/ops_fstype.c')
-rw-r--r--fs/gfs2/ops_fstype.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/gfs2/ops_fstype.c b/fs/gfs2/ops_fstype.c
index d39314d..c94422b 100644
--- a/fs/gfs2/ops_fstype.c
+++ b/fs/gfs2/ops_fstype.c
@@ -791,7 +791,7 @@ static int gfs2_get_sb(struct file_system_type *fs_type, int flags,
if (error)
goto out;
sb = mnt->mnt_sb;
- sdp = (struct gfs2_sbd*)sb->s_fs_info;
+ sdp = sb->s_fs_info;
sdp->sd_gfs2mnt = mnt;
out:
return error;
@@ -832,7 +832,7 @@ static int set_bdev_super(struct super_block *s, void *data)
static int test_bdev_super(struct super_block *s, void *data)
{
- return (void *)s->s_bdev == data;
+ return s->s_bdev == data;
}
static struct super_block* get_gfs2_sb(const char *dev_name)