Skip to content

Commit dec64ae

Browse files
AstralBobAndreas Gruenbacher
authored andcommitted
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 <[email protected]> Signed-off-by: Andreas Gruenbacher <[email protected]>
1 parent f511e60 commit dec64ae

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

fs/gfs2/quota.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,6 @@ static int gfs2_adjust_quota(struct gfs2_sbd *sdp, loff_t loc,
859859
return err;
860860

861861
loc -= sizeof(q); /* gfs2_internal_read would've advanced the loc ptr */
862-
err = -EIO;
863862
be64_add_cpu(&q.qu_value, change);
864863
if (((s64)be64_to_cpu(q.qu_value)) < 0)
865864
q.qu_value = 0; /* Never go negative on quota usage */

0 commit comments

Comments
 (0)