}
/* 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. */