diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2018-05-15 10:41:01 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2018-05-15 10:41:01 +0200 |
commit | e6218bf390a9992de86a535bcb227f75e2c20cf9 (patch) | |
tree | b6bfa2374c78fedacb683b4da91afac3300807ba /lib/swiotlb.c | |
parent | 77bade677c3c5616dfadfd21f0220fcddbfa4cbe (diff) | |
parent | 35cd67a0caf767aba472452865dcb4471fcce2b1 (diff) |
Merge branch 'i2c/for-current-fixed' into i2c/for-4.18
Diffstat (limited to 'lib/swiotlb.c')
-rw-r--r-- | lib/swiotlb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/swiotlb.c b/lib/swiotlb.c index fece57566d45..12fbaa445637 100644 --- a/lib/swiotlb.c +++ b/lib/swiotlb.c @@ -737,7 +737,7 @@ out_unmap: swiotlb_tbl_unmap_single(dev, phys_addr, size, DMA_TO_DEVICE, DMA_ATTR_SKIP_CPU_SYNC); out_warn: - if ((attrs & DMA_ATTR_NO_WARN) && printk_ratelimit()) { + if (!(attrs & DMA_ATTR_NO_WARN) && printk_ratelimit()) { dev_warn(dev, "swiotlb: coherent allocation failed, size=%zu\n", size); |