Skip to content

Commit

Permalink
xfs: fix an assignment within an ASSERT()
Browse files Browse the repository at this point in the history
In fs/xfs/xfs_trans.c::xfs_trans_unreserve_and_mod_sb() at the out:
label we have this:
	ASSERT(error = 0);
I believe a comparison was intended, not an assignment. If I'm
right, the patch below fixes that up.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Alex Elder <aelder@sgi.com>
  • Loading branch information
Jesper Juhl authored and Alex Elder committed Jan 12, 2011
1 parent bfc6017 commit 1884bd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/xfs/xfs_trans.c
Original file line number Diff line number Diff line change
Expand Up @@ -1137,7 +1137,7 @@ xfs_trans_unreserve_and_mod_sb(
if (blkdelta)
xfs_icsb_modify_counters(mp, XFS_SBS_FDBLOCKS, -blkdelta, rsvd);
out:
ASSERT(error = 0);
ASSERT(error == 0);
return;
}

Expand Down

0 comments on commit 1884bd8

Please sign in to comment.