linux/sound/soc/sof
Colin Ian King c437ba0300
ASoC: SOF: remove redundant null checks of dai
Currently there are two null checks of pointer dai in function
sof_connect_dai_widget and yet there is no null check of dai
at the end of the function when checking !dai->name.  The latter
would be a null pointer deference if dai is null (as picked up
by static analysis), however the function is only ever called
when dai is successfully allocated, so the null checks are
redundant. Clean up the code by removing the null checks.

Addresses-Coverity: ("Dereference after null check")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2019-05-03 14:54:15 +09:00
..
intel ASoC: SOF: Intel: fix spelling mistake "incompatble" -> "incompatible" 2019-05-02 11:10:59 +09:00
xtensa ASoC: SOF: Add xtensa support 2019-04-28 02:49:31 +09:00
Kconfig ASoC: SOF: Add Build support for SOF core and Intel drivers 2019-04-28 02:51:46 +09:00
Makefile ASoC: SOF: Add Build support for SOF core and Intel drivers 2019-04-28 02:51:46 +09:00
control.c ASoC: SOF: Add Sound Open Firmware KControl support 2019-04-28 02:47:50 +09:00
core.c
debug.c ASoC: SOF: Add driver debug support. 2019-04-28 02:47:54 +09:00
ipc.c ASoC: SOF: Add support for IPC IO between DSP and Host 2019-04-28 02:47:58 +09:00
loader.c ASoC: SOF: Add firmware loader support 2019-04-28 02:48:21 +09:00
nocodec.c ASoC: SOF: Add Nocodec machine driver support 2019-04-28 02:49:26 +09:00
ops.c ASoC: SOF: Add DSP HW abstraction operations 2019-04-28 02:48:15 +09:00
ops.h ASoC: SOF: Add DSP HW abstraction operations 2019-04-28 02:48:15 +09:00
pcm.c ASoC: SOF: Add PCM operations support 2019-04-28 02:48:02 +09:00
pm.c ASoC: SOF: Add PM support 2019-04-28 02:49:22 +09:00
sof-acpi-dev.c ASoC: SOF: Add ACPI device support 2019-04-28 02:51:01 +09:00
sof-pci-dev.c ASoC: SOF: Add PCI device support 2019-04-28 02:51:05 +09:00
sof-priv.h
topology.c ASoC: SOF: remove redundant null checks of dai 2019-05-03 14:54:15 +09:00
trace.c ASoC: SOF: Add DSP firmware logger support 2019-04-28 02:48:10 +09:00
utils.c ASoC: SOF: Add utils 2019-04-28 02:49:47 +09:00