]> git.hungrycats.org Git - linux/commitdiff
[IA64-SGI] BUG_ON test was backwards
authorPat Gefre <pfg@sgi.com>
Tue, 19 Oct 2004 20:22:26 +0000 (20:22 +0000)
committerTony Luck <tony.luck@intel.com>
Tue, 19 Oct 2004 20:22:26 +0000 (20:22 +0000)
Signed-off-by: Patrick Gefre <pfg@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/sn/kernel/bte.c

index 4e05dfd0eb48e993d41398b8777fd86aec6b85ba..f2b895128f041e616de2a1b7929e73e28cc294bb 100644 (file)
@@ -79,9 +79,9 @@ bte_result_t bte_copy(u64 src, u64 dest, u64 len, u64 mode, void *notification)
                return BTE_SUCCESS;
        }
 
-       BUG_ON(!((len & L1_CACHE_MASK) ||
-                (src & L1_CACHE_MASK) || (dest & L1_CACHE_MASK)));
-       BUG_ON(len < ((BTE_LEN_MASK + 1) << L1_CACHE_SHIFT));
+       BUG_ON((len & L1_CACHE_MASK) ||
+                (src & L1_CACHE_MASK) || (dest & L1_CACHE_MASK));
+       BUG_ON(!(len < ((BTE_LEN_MASK + 1) << L1_CACHE_SHIFT)));
 
        if (mode & BTE_USE_DEST) {
                /* try remote then local */