From: Bob Peterson Date: Wed, 21 Jun 2023 17:31:15 +0000 (-0500) Subject: gfs2: Remove useless err set X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=dec64ae37bf90c2ae3fba2089f5bd1d025c57995;p=users%2Fwilly%2Fpagecache.git gfs2: Remove useless err set Function gfs2_adjust_quota set variable err, then set it again to a different value. This patch removes the redundant set. Signed-off-by: Bob Peterson Signed-off-by: Andreas Gruenbacher --- diff --git a/fs/gfs2/quota.c b/fs/gfs2/quota.c index c4da8c01deb79..6824c7497d998 100644 --- a/fs/gfs2/quota.c +++ b/fs/gfs2/quota.c @@ -859,7 +859,6 @@ static int gfs2_adjust_quota(struct gfs2_sbd *sdp, loff_t loc, return err; loc -= sizeof(q); /* gfs2_internal_read would've advanced the loc ptr */ - err = -EIO; be64_add_cpu(&q.qu_value, change); if (((s64)be64_to_cpu(q.qu_value)) < 0) q.qu_value = 0; /* Never go negative on quota usage */