USB: core: urb: Use struct_size() in kmalloc()
[linux-2.6-microblaze.git] / lib / scatterlist.c
index 7c6096a..9ba349e 100644 (file)
@@ -271,7 +271,7 @@ int __sg_alloc_table(struct sg_table *table, unsigned int nents,
 
        if (nents == 0)
                return -EINVAL;
-#ifndef CONFIG_ARCH_HAS_SG_CHAIN
+#ifdef CONFIG_ARCH_NO_SG_CHAIN
        if (WARN_ON_ONCE(nents > max_ents))
                return -EINVAL;
 #endif