From 36a740916a94ea0efa0c5c2ddcd9dcdce56c9a40 Mon Sep 17 00:00:00 2001 From: Bob Peterson Date: Wed, 28 Jun 2023 08:50:46 -0500 Subject: gfs2: Remove useless assignment 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 Signed-off-by: Andreas Gruenbacher --- fs/gfs2/quota.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'fs/gfs2') diff --git a/fs/gfs2/quota.c b/fs/gfs2/quota.c index 8b6a1c14a03e..678d2e749db8 100644 --- a/fs/gfs2/quota.c +++ b/fs/gfs2/quota.c @@ -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: -- cgit v1.2.3