Skip to content

Commit f511e60

Browse files
AstralBobAndreas Gruenbacher
authored andcommitted
gfs2: Small gfs2_quota_lock cleanup
No need to set error = 0 since it's set further down. Signed-off-by: Bob Peterson <[email protected]> Signed-off-by: Andreas Gruenbacher <[email protected]>
1 parent a4d22e3 commit f511e60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/gfs2/quota.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,7 @@ int gfs2_quota_lock(struct gfs2_inode *ip, kuid_t uid, kgid_t gid)
10741074
struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode);
10751075
struct gfs2_quota_data *qd;
10761076
u32 x;
1077-
int error = 0;
1077+
int error;
10781078

10791079
if (sdp->sd_args.ar_quota != GFS2_QUOTA_ON &&
10801080
sdp->sd_args.ar_quota != GFS2_QUOTA_QUIET)

0 commit comments

Comments
 (0)