projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f511e60
)
gfs2: Remove useless err set
author
Bob Peterson
<rpeterso@redhat.com>
Wed, 21 Jun 2023 17:31:15 +0000
(12:31 -0500)
committer
Andreas Gruenbacher
<agruenba@redhat.com>
Tue, 5 Sep 2023 13:58:18 +0000
(15:58 +0200)
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 <rpeterso@redhat.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/quota.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/gfs2/quota.c
b/fs/gfs2/quota.c
index c4da8c01deb792f1a5e8e3f296255862c36b29d6..6824c7497d9989cd9c3b6955dcaf4370a77b8d03 100644
(file)
--- 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 */