diff options
author | Arnd Bergmann <[email protected]> | 2021-03-22 11:31:10 +0100 |
---|---|---|
committer | Takashi Iwai <[email protected]> | 2021-03-22 12:26:00 +0100 |
commit | 940ba1f5e18d4411c4e87ef902dc811a10d341d0 (patch) | |
tree | 88d8d9e17402e37a13b3505eb495bc2ee50cb181 /drivers/fpga/fpga-mgr.c | |
parent | d2b6f15bc18ac8fbce25398290774c21f5b2cd44 (diff) |
ALSA: core: avoid -Wempty-body warnings
Building with 'make W=1' shows some warnings about empty function-style
macros:
sound/core/pcm_memory.c: In function 'preallocate_pages':
sound/core/pcm_memory.c:236:49: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
236 | preallocate_info_init(substream);
sound/core/seq_device.c: In function 'snd_seq_device_dev_register':
sound/core/seq_device.c:163:41: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
163 | queue_autoload_drivers();
Change them to empty inline functions, which are more robust here.
Signed-off-by: Arnd Bergmann <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions