Skip to content

Commit

Permalink
gfs2: Remove useless assignment
Browse files Browse the repository at this point in the history
This assignment is unnecessary because if error was not already 0, it
would have branched to an error label already.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
  • Loading branch information
AstralBob authored and Andreas Gruenbacher committed Sep 5, 2023
1 parent 9ab7b78 commit 36a7409
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fs/gfs2/quota.c
Original file line number Diff line number Diff line change
Expand Up @@ -971,8 +971,6 @@ static int do_sync(unsigned int num_qd, struct gfs2_quota_data **qda)
set_bit(QDF_REFRESH, &qd->qd_flags);
}

error = 0;

out_end_trans:
gfs2_trans_end(sdp);
out_ipres:
Expand Down

0 comments on commit 36a7409

Please sign in to comment.