[GFS2] fs/gfs2/ops_fstype.c:gfs2_get_sb_meta(): remove unused variable
The Coverity checker spotted this unused variable. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
This commit is contained in:
parent
abbdbd2065
commit
b0cb66955f
|
@ -854,7 +854,6 @@ static int gfs2_get_sb_meta(struct file_system_type *fs_type, int flags,
|
||||||
int error = 0;
|
int error = 0;
|
||||||
struct super_block *sb = NULL, *new;
|
struct super_block *sb = NULL, *new;
|
||||||
struct gfs2_sbd *sdp;
|
struct gfs2_sbd *sdp;
|
||||||
char *gfs2mnt = NULL;
|
|
||||||
|
|
||||||
sb = get_gfs2_sb(dev_name);
|
sb = get_gfs2_sb(dev_name);
|
||||||
if (!sb) {
|
if (!sb) {
|
||||||
|
@ -892,8 +891,6 @@ static int gfs2_get_sb_meta(struct file_system_type *fs_type, int flags,
|
||||||
atomic_inc(&sdp->sd_gfs2mnt->mnt_count);
|
atomic_inc(&sdp->sd_gfs2mnt->mnt_count);
|
||||||
return simple_set_mnt(mnt, new);
|
return simple_set_mnt(mnt, new);
|
||||||
error:
|
error:
|
||||||
if (gfs2mnt)
|
|
||||||
kfree(gfs2mnt);
|
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue