xfs: = vs == typo in ASSERT()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 11 Sep 2013 21:17:31 +0000 (00:17 +0300)
committerBen Myers <bpm@sgi.com>
Thu, 12 Sep 2013 14:42:08 +0000 (09:42 -0500)
There is a '=' vs '==' typo so the ASSERT()s are always true.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_bmap_btree.c

index 531b020..bb8de8e 100644 (file)
@@ -957,9 +957,9 @@ xfs_bmbt_change_owner(
        ASSERT(tp || buffer_list);
        ASSERT(!(tp && buffer_list));
        if (whichfork == XFS_DATA_FORK)
-               ASSERT(ip->i_d.di_format = XFS_DINODE_FMT_BTREE);
+               ASSERT(ip->i_d.di_format == XFS_DINODE_FMT_BTREE);
        else
-               ASSERT(ip->i_d.di_aformat = XFS_DINODE_FMT_BTREE);
+               ASSERT(ip->i_d.di_aformat == XFS_DINODE_FMT_BTREE);
 
        cur = xfs_bmbt_init_cursor(ip->i_mount, tp, ip, whichfork);
        if (!cur)