ASoC: SOF: remove unused state variable in suspend function

Remove unused and no plan to use variable from suspend function.

Signed-off-by: Fred Oh <fred.oh@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20190722141402.7194-10-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Fred Oh
2019-07-22 09:13:50 -05:00
committed by Mark Brown
parent 441c58cf8e
commit 1c38c9223d
5 changed files with 15 additions and 17 deletions

View File

@@ -128,10 +128,10 @@ static inline int snd_sof_dsp_resume(struct snd_sof_dev *sdev)
return 0;
}
static inline int snd_sof_dsp_suspend(struct snd_sof_dev *sdev, int state)
static inline int snd_sof_dsp_suspend(struct snd_sof_dev *sdev)
{
if (sof_ops(sdev)->suspend)
return sof_ops(sdev)->suspend(sdev, state);
return sof_ops(sdev)->suspend(sdev);
return 0;
}
@@ -144,11 +144,10 @@ static inline int snd_sof_dsp_runtime_resume(struct snd_sof_dev *sdev)
return 0;
}
static inline int snd_sof_dsp_runtime_suspend(struct snd_sof_dev *sdev,
int state)
static inline int snd_sof_dsp_runtime_suspend(struct snd_sof_dev *sdev)
{
if (sof_ops(sdev)->runtime_suspend)
return sof_ops(sdev)->runtime_suspend(sdev, state);
return sof_ops(sdev)->runtime_suspend(sdev);
return 0;
}