From bcf0b9a19bb6d15fc199ef86f9d8fa4fb3c3c39f Mon Sep 17 00:00:00 2001 From: Luke Go Date: Mon, 22 Jun 2020 15:30:43 +0900 Subject: [PATCH] Partial apply: audio: coveriy fix [1/1] Change-Id: I1ddf7c7181575217f2f5c0b81a6de3f438e1c923 --- sound/soc/codecs/amlogic/tas5805.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sound/soc/codecs/amlogic/tas5805.c b/sound/soc/codecs/amlogic/tas5805.c index 9c3129c79592..e2ccf4402a8a 100644 --- a/sound/soc/codecs/amlogic/tas5805.c +++ b/sound/soc/codecs/amlogic/tas5805.c @@ -1087,9 +1087,7 @@ static int tas5805m_probe(struct snd_soc_codec *codec) if (ret != 0) goto err; - if (tas5805m) - tas5805m_set_volume(codec, tas5805m->vol); - + tas5805m_set_volume(codec, tas5805m->vol); snd_soc_add_codec_controls(codec, tas5805m_vol_control, ARRAY_SIZE(tas5805m_vol_control)); tas5805m->codec = codec;