XFS: xfs_trans_add_item() - don't assign in ASSERT() when compare is intended

It looks to me like the two ASSERT()s in xfs_trans_add_item() really
want to do a compare (==) rather than assignment (=).
This patch changes it from the latter to the former.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Ben Myers <bpm@sgi.com>

(cherry picked from commit 05293485a0)
This commit is contained in:
Jesper Juhl 2012-02-13 20:51:05 +00:00 committed by Ben Myers
parent 92b2e5b31d
commit f65020a83a
1 changed files with 2 additions and 2 deletions

View File

@ -1151,8 +1151,8 @@ xfs_trans_add_item(
{ {
struct xfs_log_item_desc *lidp; struct xfs_log_item_desc *lidp;
ASSERT(lip->li_mountp = tp->t_mountp); ASSERT(lip->li_mountp == tp->t_mountp);
ASSERT(lip->li_ailp = tp->t_mountp->m_ail); ASSERT(lip->li_ailp == tp->t_mountp->m_ail);
lidp = kmem_zone_zalloc(xfs_log_item_desc_zone, KM_SLEEP | KM_NOFS); lidp = kmem_zone_zalloc(xfs_log_item_desc_zone, KM_SLEEP | KM_NOFS);