diff options
| author | Arnd Bergmann <[email protected]> | 2021-03-22 11:44:58 +0000 |
|---|---|---|
| committer | Dan Williams <[email protected]> | 2021-03-22 16:20:06 +0000 |
| commit | 9de82caad0282205d4c38a39456bce58e3219540 (patch) | |
| tree | 10e33a280ccfc249e7c505880e9542de1c474034 /lib/dynamic_debug.c | |
| parent | Linux 5.12-rc3 (diff) | |
| download | kernel-9de82caad0282205d4c38a39456bce58e3219540.tar.gz kernel-9de82caad0282205d4c38a39456bce58e3219540.zip | |
dax: avoid -Wempty-body warnings
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' statement [-Werror=empty-body]
94 | /* nothing to remove */;
| ^
drivers/dax/bus.c:99:43: error: suggest braces around empty body in an 'else' statement [-Werror=empty-body]
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.
Signed-off-by: Arnd Bergmann <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Dan Williams <[email protected]>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions
