summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sound/soc/intel/catpt/pcm.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/sound/soc/intel/catpt/pcm.c b/sound/soc/intel/catpt/pcm.c
index 7b2bab12c707..ba0c75f4b4e7 100644
--- a/sound/soc/intel/catpt/pcm.c
+++ b/sound/soc/intel/catpt/pcm.c
@@ -99,19 +99,15 @@ catpt_get_stream_template(struct snd_pcm_substream *substream)
}
/* Caller responsible for holding ->stream_mutex. */
-struct catpt_stream_runtime *
-catpt_stream_find(struct catpt_dev *cdev, u8 stream_hw_id)
+struct catpt_stream_runtime *catpt_stream_find(struct catpt_dev *cdev, u8 stream_hw_id)
{
- struct catpt_stream_runtime *pos, *result = NULL;
+ struct catpt_stream_runtime *stream;
- list_for_each_entry(pos, &cdev->stream_list, node) {
- if (pos->info.stream_hw_id == stream_hw_id) {
- result = pos;
- break;
- }
- }
+ list_for_each_entry(stream, &cdev->stream_list, node)
+ if (stream->info.stream_hw_id == stream_hw_id)
+ return stream;
- return result;
+ return NULL;
}
/* Caller responsible for holding ->stream_mutex. */