xfs: remove redundant assignment to variable error
authorColin Ian King <colin.king@canonical.com>
Wed, 6 Nov 2019 16:07:46 +0000 (08:07 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 6 Nov 2019 16:07:46 +0000 (08:07 -0800)
Variable error is being initialized with a value that is never read
and is being re-assigned a couple of statements later on. The
assignment is redundant and hence can be removed.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_super.c

index b3188ea..2302f67 100644 (file)
@@ -1362,7 +1362,7 @@ xfs_fc_fill_super(
 {
        struct xfs_mount        *mp = sb->s_fs_info;
        struct inode            *root;
-       int                     flags = 0, error = -ENOMEM;
+       int                     flags = 0, error;
 
        mp->m_super = sb;