1
0
Fork 0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-01-24 09:13:20 -05:00
linux/drivers/dax
Arnd Bergmann 9de82caad0 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 <arnd@arndb.de>
Link: https://lore.kernel.org/r/20210322114514.3490752-1-arnd@kernel.org
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
2021-03-22 09:20:06 -07:00
..
hmem
pmem libnvdimm: Make remove callback return void 2021-02-16 19:35:29 -08:00
bus.c dax: avoid -Wempty-body warnings 2021-03-22 09:20:06 -07:00
bus.h dax-device: Make remove callback return void 2021-02-16 19:45:13 -08:00
dax-private.h
device.c device-dax: Drop an empty .remove callback 2021-02-16 19:44:40 -08:00
Kconfig
kmem.c dax-device: Make remove callback return void 2021-02-16 19:45:13 -08:00
Makefile
super.c whack-a-mole: don't open-code iminor/imajor 2021-02-23 10:25:29 -05:00