On Mon, Mar 22, 2021 at 4:45 AM Arnd Bergmann <arnd(a)kernel.org> wrote:
From: Arnd Bergmann <arnd(a)arndb.de>
gcc warns about an empty body in an else statement:
drivers/dax/bus.c: In function 'do_id_store':
drivers/dax/bus.c:94:48: error: suggest braces around empty body in an 'else'
94 | /* nothing to remove */;
drivers/dax/bus.c:99:43: error: suggest braces around empty body in an 'else'
99 | /* dax_id already added */;
In both of these cases, the 'else' exists only to have a place to
add a comment, but that comment doesn't really explain that much
either, so the easiest way to shut up that warning is to just
remove the else.
Ok, applied, thanks.