Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 05293485 authored by Jesper Juhl's avatar Jesper Juhl Committed by Ben Myers
Browse files

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: default avatarJesper Juhl <jj@chaosbits.net>
Signed-off-by: default avatarBen Myers <bpm@sgi.com>
parent 04da0c81
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1151,8 +1151,8 @@ xfs_trans_add_item(
{
	struct xfs_log_item_desc *lidp;

	ASSERT(lip->li_mountp = tp->t_mountp);
	ASSERT(lip->li_ailp = tp->t_mountp->m_ail);
	ASSERT(lip->li_mountp == tp->t_mountp);
	ASSERT(lip->li_ailp == tp->t_mountp->m_ail);

	lidp = kmem_zone_zalloc(xfs_log_item_desc_zone, KM_SLEEP | KM_NOFS);