Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MIPS: Octeon: Avoid empty-body warning
gcc-6 reports a harmless build warning: arch/mips/cavium-octeon/dma-octeon.c: In function 'octeon_dma_alloc_coherent': arch/mips/cavium-octeon/dma-octeon.c:179:3: error: suggest braces around empty body in an 'else' statement [-Werror=empty-body] We can fix this by rearranging the code slightly using the IS_ENABLED() macro. Signed-off-by: Arnd Bergmann <[email protected]> Cc: Hans-Christian Noren Egtvedt <[email protected]> Cc: Vineet Gupta <[email protected]> Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/15048 Signed-off-by: Ralf Baechle <[email protected]>
- Loading branch information