diff options
author | Paul Burton <[email protected]> | 2019-02-15 22:03:04 +0000 |
---|---|---|
committer | Paul Burton <[email protected]> | 2019-02-19 12:17:43 -0800 |
commit | d411da06abbe4c7cad0cc16b509d10b43da783a8 (patch) | |
tree | 65bd55f58f21cbd450fe78e981b916b087c622a9 /scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h | |
parent | 66b6572a142f2e9d7c4ffbcdaeb762d58664aa59 (diff) |
MIPS: dma-noncoherent: Remove bogus condition in dma_sync_phys()
Commit e36863a550da ("MIPS: HIGHMEM DMA on noncoherent MIPS32
processors") introduced code which:
1) Calculates an offset within a page, by ANDing an address
with ~PAGE_MASK.
2) Checks whether that offset is >= PAGE_SIZE.
This check can never evaluate true, making the code it guards
unreachable. smatch spots bogus arithmetic resulting from the
impossible condition, resulting in the following warning:
arch/mips/mm/dma-noncoherent.c:125
dma_sync_phys() warn: mask and shift to zero
Fix this by removing the impossible to satisfy condition & the
unreachable code it guards.
Signed-off-by: Paul Burton <[email protected]>
Cc: [email protected]
Cc: Christoph Hellwig <[email protected]>
Cc: Marek Szyprowski <[email protected]>
Cc: Robin Murphy <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h')
0 files changed, 0 insertions, 0 deletions