]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm/radix: Use do/while(0) trick for single statement block
authorMathieu Malaterre <malat@debian.org>
Mon, 23 Apr 2018 19:36:38 +0000 (21:36 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 25 May 2018 02:04:39 +0000 (12:04 +1000)
commite3e140d2eb013316a4c33dcb3894ba1ea876e267
tree0db5b989dd6ba71eb94741a12bfe8b92c3a095a8
parent27dc53d9319f60f0261cf1dfc2880fd28ec4a266
powerpc/mm/radix: Use do/while(0) trick for single statement block

In commit 85ccc1cec3e3 ("powerpc/mm/radix: Update command line parsing for
disable_radix") an `if` statement was added for a possible empty body
(prom_debug).

Fix the following warning, treated as error with W=1:

  arch/powerpc/kernel/prom_init.c:656:46: error: suggest braces around empty body in an ‘if’ statement [-Werror=empty-body]

Suggested-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Mathieu Malaterre <malat@debian.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/prom_init.c