提交 1884bd83 编写于 作者: J Jesper Juhl 提交者: Alex Elder

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: NJesper Juhl <jj@chaosbits.net>
Signed-off-by: NAlex Elder <aelder@sgi.com>
上级 bfc60177
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册