]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - lib/scatterlist.c
Merge tag 'for-4.21' of git://git.armlinux.org.uk/~rmk/linux-arm
[linux.git] / lib / scatterlist.c
index 7c6096a7170486449736d82a37fbd50326ac169e..9ba349e775ef0839b11eb18d1bc671357ab68ae3 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