diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-01-17 16:18:45 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2017-01-25 02:51:11 +0100 |
commit | e9663b13c81b6d2ee8bb529e565d2e3ceeb2c84d (patch) | |
tree | bf6f0de49be24c3528343642127a87d430dbfd2e /fs/autofs4 | |
parent | 72d1cfc924f8cb7cf51732262b627da1205b34e1 (diff) |
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 <arnd@arndb.de>
Cc: Hans-Christian Noren Egtvedt <egtvedt@samfundet.no>
Cc: Vineet Gupta <vgupta@synopsys.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/15048
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'fs/autofs4')
0 files changed, 0 insertions, 0 deletions