]> git.baikalelectronics.ru Git - kernel.git/commit
XFS: xfs_trans_add_item() - don't assign in ASSERT() when compare is intended
authorJesper Juhl <jj@chaosbits.net>
Mon, 13 Feb 2012 20:51:05 +0000 (20:51 +0000)
committerBen Myers <bpm@sgi.com>
Mon, 13 Feb 2012 23:09:21 +0000 (17:09 -0600)
commit9bc00fd1540e6270a3998b203a52e35586ad9039
treeadb5c61454fc33843e6a6b1abca2448a3f92d967
parent8014f1691da4aeec2986408bb7f166b213af8971
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 fb0de1b2e1ccca0dd5a733f996bd72dbdf526283)
fs/xfs/xfs_trans.c