aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorNikola Pajkovsky <[email protected]>2016-11-15 08:47:49 +0000
committerThomas Gleixner <[email protected]>2017-02-04 08:27:06 +0000
commit68dee8e2f2cacc54d038394e70d22411dee89da2 (patch)
tree2eff12a4a567f3a7988180f1d8db46c4c84442a7 /net/unix/af_unix.c
parentLinux 4.10-rc6 (diff)
downloadkernel-68dee8e2f2cacc54d038394e70d22411dee89da2.tar.gz
kernel-68dee8e2f2cacc54d038394e70d22411dee89da2.zip
x86/pci-calgary: Fix iommu_free() comparison of unsigned expression >= 0
commit 8fd524b355da ("x86: Kill bad_dma_address variable") has killed bad_dma_address variable and used instead of macro DMA_ERROR_CODE which is always zero. Since dma_addr is unsigned, the statement dma_addr >= DMA_ERROR_CODE is always true, and not needed. arch/x86/kernel/pci-calgary_64.c: In function ‘iommu_free’: arch/x86/kernel/pci-calgary_64.c:299:2: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits] if (unlikely((dma_addr >= DMA_ERROR_CODE) && (dma_addr < badend))) { Fixes: 8fd524b355da ("x86: Kill bad_dma_address variable") Signed-off-by: Nikola Pajkovsky <[email protected]> Cc: [email protected] Cc: Jon Mason <[email protected]> Cc: Muli Ben-Yehuda <[email protected]> Link: http://lkml.kernel.org/r/7612c0f9dd7c1290407dbf8e809def922006920b.1479161177.git.npajkovsky@suse.cz Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions