xfs: fix an assignment within an ASSERT()
authorJesper Juhl <jj@chaosbits.net>
Sat, 25 Dec 2010 20:14:53 +0000 (20:14 +0000)
committerAlex Elder <aelder@sgi.com>
Wed, 12 Jan 2011 04:29:13 +0000 (22:29 -0600)
In fs/xfs/xfs_trans.c::xfs_trans_unreserve_and_mod_sb() at the out:
label we have this:
ASSERT(error = 0);
I believe a comparison was intended, not an assignment. If I'm
right, the patch below fixes that up.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Alex Elder <aelder@sgi.com>
fs/xfs/xfs_trans.c

index f80a067a46584005d4a1b8165fdef836c45fc6a0..33dbc4e0ad622a94dbbf8aa67b49e0eacef0cbbc 100644 (file)
@@ -1137,7 +1137,7 @@ out_undo_fdblocks:
        if (blkdelta)
                xfs_icsb_modify_counters(mp, XFS_SBS_FDBLOCKS, -blkdelta, rsvd);
 out:
-       ASSERT(error = 0);
+       ASSERT(error == 0);
        return;
 }