Revert "audio kernel: add null point check for lpass cdc."

This reverts commit bfbf93e9f8.

Change-Id: Id5e9e84b18e809831618639a0bf8f0497eb82bd3
Signed-off-by: Phani Kumar Uppalapati <quic_phaniu@quicinc.com>
This commit is contained in:
Phani Kumar Uppalapati
2022-11-30 13:23:15 -08:00
parent 8dcd87dafa
commit dc970caadb
2 changed files with 3 additions and 3 deletions

View File

@@ -1378,7 +1378,7 @@ int lpass_cdc_runtime_resume(struct device *dev)
trace_printk("%s, enter\n", __func__);
dev_dbg(dev,"%s, enter\n", __func__);
mutex_lock(&priv->vote_lock);
if ((priv->lpass_core_hw_vote == NULL) || (priv->lpass_core_hw_vote->core == NULL)) {
if (priv->lpass_core_hw_vote == NULL) {
dev_dbg(dev, "%s: Invalid lpass core hw node\n", __func__);
goto audio_vote;
}
@@ -1396,7 +1396,7 @@ int lpass_cdc_runtime_resume(struct device *dev)
__func__, priv->core_hw_vote_count);
audio_vote:
if ((priv->lpass_audio_hw_vote == NULL) || (priv->lpass_audio_hw_vote->core == NULL)) {
if (priv->lpass_audio_hw_vote == NULL) {
dev_dbg(dev, "%s: Invalid lpass audio hw node\n", __func__);
goto done;
}