summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNikola Pajkovsky <npajkovsky@suse.cz>2016-11-15 08:47:49 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-05-14 12:00:17 (GMT)
commit56e524a8c305a7eff1a8898e1e4e765904dfb42a (patch)
treeb3d2c169e027c5f6a850a4431bc429157e0d372b /tools
parent5ed26fad2d083ada4da3591f8039a6e47983c756 (diff)
downloadlinux-56e524a8c305a7eff1a8898e1e4e765904dfb42a.tar.xz
x86/pci-calgary: Fix iommu_free() comparison of unsigned expression >= 0
commit 68dee8e2f2cacc54d038394e70d22411dee89da2 upstream. 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 <npajkovsky@suse.cz> Cc: iommu@lists.linux-foundation.org Cc: Jon Mason <jdmason@kudzu.us> Cc: Muli Ben-Yehuda <mulix@mulix.org> Link: http://lkml.kernel.org/r/7612c0f9dd7c1290407dbf8e809def922006920b.1479161177.git.npajkovsky@suse.cz Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions