summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_super.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-11-06 08:07:46 -0800
committerDarrick J. Wong <darrick.wong@oracle.com>2019-11-06 08:07:46 -0800
commit0279c71fe0d14c510001e9a7dd1ce2e0c77dd06c (patch)
tree4bf9b5f04ed0c71b05ebe0cebf799e4e9f62385b /fs/xfs/xfs_super.c
parent8ef34723eff08806e3e9c1c756c62a3cb482a3b8 (diff)
xfs: remove redundant assignment to variable error
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>
Diffstat (limited to 'fs/xfs/xfs_super.c')
-rw-r--r--fs/xfs/xfs_super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c
index b3188ea49413..2302f67d1a18 100644
--- a/fs/xfs/xfs_super.c
+++ b/fs/xfs/xfs_super.c
@@ -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;