Skip to content

Commit 25d4484

Browse files
committed
ASoC: SOF: sof-audio: removed unused function
cppcheck warning: sound/soc/sof/sof-audio.c:884:0: style: The function 'snd_sof_find_spcm_pcm_id' is never used. [unusedFunction] Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
1 parent 6587842 commit 25d4484

2 files changed

Lines changed: 0 additions & 16 deletions

File tree

sound/soc/sof/sof-audio.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -866,20 +866,6 @@ struct snd_sof_pcm *snd_sof_find_spcm_comp(struct snd_soc_component *scomp,
866866
return NULL;
867867
}
868868

869-
struct snd_sof_pcm *snd_sof_find_spcm_pcm_id(struct snd_soc_component *scomp,
870-
unsigned int pcm_id)
871-
{
872-
struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp);
873-
struct snd_sof_pcm *spcm;
874-
875-
list_for_each_entry(spcm, &sdev->pcm_list, list) {
876-
if (le32_to_cpu(spcm->pcm.pcm_id) == pcm_id)
877-
return spcm;
878-
}
879-
880-
return NULL;
881-
}
882-
883869
struct snd_sof_widget *snd_sof_find_swidget(struct snd_soc_component *scomp,
884870
const char *name)
885871
{

sound/soc/sof/sof-audio.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,6 @@ struct snd_sof_pcm *snd_sof_find_spcm_name(struct snd_soc_component *scomp,
220220
struct snd_sof_pcm *snd_sof_find_spcm_comp(struct snd_soc_component *scomp,
221221
unsigned int comp_id,
222222
int *direction);
223-
struct snd_sof_pcm *snd_sof_find_spcm_pcm_id(struct snd_soc_component *scomp,
224-
unsigned int pcm_id);
225223
void snd_sof_pcm_period_elapsed(struct snd_pcm_substream *substream);
226224
void snd_sof_pcm_init_elapsed_work(struct work_struct *work);
227225

0 commit comments

Comments
 (0)