]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ASoC: meson: axg-card: remove useless check on codec
authorJerome Brunet <jbrunet@baylibre.com>
Fri, 28 Jun 2019 08:17:08 +0000 (10:17 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 28 Jun 2019 12:43:32 +0000 (13:43 +0100)
commit8fc22fa4b2cd983e4c542d1841b3d2212ad18ed4
treeb42db5aa2d990b86bc95b2ff213fe6c9a8b00f7b
parent34614739988ad60c3493da66dd856002ee93edf9
ASoC: meson: axg-card: remove useless check on codec

While checking cpus before dereferencing the pointer is required, it is
not necessary for codecs. 'codec' can't possibly be NULL in the loop

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/meson/axg-card.c