diff options
author | Jesper Juhl <jj@chaosbits.net> | 2010-12-25 20:14:53 +0000 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2011-01-11 22:29:13 -0600 |
commit | 1884bd8354c9aec4ca501dc4773c13ad2a09af7b (patch) | |
tree | 0afc35e48782f4bd444ca36ececd555e2a82c333 /fs/xfs/xfs_trans.c | |
parent | bfc60177f8ab509bc225becbb58f7e53a0e33e81 (diff) | |
download | op-kernel-dev-1884bd8354c9aec4ca501dc4773c13ad2a09af7b.zip op-kernel-dev-1884bd8354c9aec4ca501dc4773c13ad2a09af7b.tar.gz |
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/xfs/xfs_trans.c')
-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 f80a067..33dbc4e 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; } |