Commit dec64ae3 authored by Bob Peterson's avatar Bob Peterson Committed by Andreas Gruenbacher

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: default avatarBob Peterson <rpeterso@redhat.com>
Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
parent f511e60a
...@@ -859,7 +859,6 @@ static int gfs2_adjust_quota(struct gfs2_sbd *sdp, loff_t loc, ...@@ -859,7 +859,6 @@ static int gfs2_adjust_quota(struct gfs2_sbd *sdp, loff_t loc,
return err; return err;
loc -= sizeof(q); /* gfs2_internal_read would've advanced the loc ptr */ loc -= sizeof(q); /* gfs2_internal_read would've advanced the loc ptr */
err = -EIO;
be64_add_cpu(&q.qu_value, change); be64_add_cpu(&q.qu_value, change);
if (((s64)be64_to_cpu(q.qu_value)) < 0) if (((s64)be64_to_cpu(q.qu_value)) < 0)
q.qu_value = 0; /* Never go negative on quota usage */ q.qu_value = 0; /* Never go negative on quota usage */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment