Igor M Podlesny (poige) wrote,
Igor M Podlesny
poige

xfs: = vs == typo in ASSERT()

$ git show aa9e104
commit aa9e10409eae9dd61a336c6307d0a0b538063970
Author: Dan Carpenter <dan.carpenter@oracle.com>
Date:   Thu Sep 12 00:17:31 2013 +0300

    xfs: = vs == typo in ASSERT()
   
    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>

diff --git a/fs/xfs/xfs_bmap_btree.c b/fs/xfs/xfs_bmap_btree.c
index 531b020..bb8de8e 100644
--- a/fs/xfs/xfs_bmap_btree.c
+++ b/fs/xfs/xfs_bmap_btree.c
@@ -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);
— ну заiбись, хорошо поассертились…
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 4 comments