diff options
author | Jesper Juhl <jj@chaosbits.net> | 2010-12-25 21:14:53 +0100 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2011-01-12 05:29:13 +0100 |
commit | 1884bd8354c9aec4ca501dc4773c13ad2a09af7b (patch) | |
tree | 0afc35e48782f4bd444ca36ececd555e2a82c333 /fs | |
parent | xfs: fix error handling for synchronous writes (diff) | |
download | linux-1884bd8354c9aec4ca501dc4773c13ad2a09af7b.tar.xz linux-1884bd8354c9aec4ca501dc4773c13ad2a09af7b.zip |
xfs: fix an assignment within an ASSERT()
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/xfs/xfs_trans.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_trans.c b/fs/xfs/xfs_trans.c index f80a067a4658..33dbc4e0ad62 100644 --- a/fs/xfs/xfs_trans.c +++ b/fs/xfs/xfs_trans.c @@ -1137,7 +1137,7 @@ out_undo_fdblocks: if (blkdelta) xfs_icsb_modify_counters(mp, XFS_SBS_FDBLOCKS, -blkdelta, rsvd); out: - ASSERT(error = 0); + ASSERT(error == 0); return; } |