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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user