aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2
diff options
context:
space:
mode:
authorBob Peterson <rpeterso@redhat.com>2023-06-20 13:49:57 -0500
committerAndreas Gruenbacher <agruenba@redhat.com>2023-09-05 15:58:18 +0200
commitf511e60a55c5f2c8a9781efb67f1897a3b3aebb1 (patch)
tree38a8e37a7209853e9b2d576ae1f061311d260898 /fs/gfs2
parenta4d22e337d022d7bb8da25c18629bac2af24ec81 (diff)
downloadlinux-f511e60a55c5f2c8a9781efb67f1897a3b3aebb1.tar.gz
gfs2: Small gfs2_quota_lock cleanup
No need to set error = 0 since it's set further down. Signed-off-by: Bob Peterson <rpeterso@redhat.com> Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'fs/gfs2')
-rw-r--r--fs/gfs2/quota.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/quota.c b/fs/gfs2/quota.c
index 21100feb1db7e5..c4da8c01deb792 100644
--- a/fs/gfs2/quota.c
+++ b/fs/gfs2/quota.c
@@ -1074,7 +1074,7 @@ int gfs2_quota_lock(struct gfs2_inode *ip, kuid_t uid, kgid_t gid)
struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode);
struct gfs2_quota_data *qd;
u32 x;
- int error = 0;
+ int error;
if (sdp->sd_args.ar_quota != GFS2_QUOTA_ON &&
sdp->sd_args.ar_quota != GFS2_QUOTA_QUIET)