diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-06-24 19:03:00 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2020-06-25 16:01:35 +0300 |
commit | 81033c6b584b44514cbb16fffc26ca29a0fa6270 (patch) | |
tree | fd63e03ce87c140e5479087c799063834e4a818a /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | c7440acc859778eed74b223fc41f094133aeaaf0 (diff) | |
download | linux-81033c6b584b44514cbb16fffc26ca29a0fa6270.tar.xz |
ALSA: core: Warn on empty module
The module argument passed to snd_card_new() must be a valid non-NULL
pointer when the module support is enabled. Since ASoC driver passes
the argument from each snd_soc_card definition, one may forget to set
the owner field and lead to a NULL module easily.
For catching such an overlook, add a WARN_ON() in snd_card_new().
Also, put the card->module assignment in the ifdef block for a very
minor optimization.
Link: https://lore.kernel.org/r/20200624160300.21703-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions