summaryrefslogtreecommitdiff
path: root/sound/soc/intel/avs/trace.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/intel/avs/trace.c')
-rw-r--r--sound/soc/intel/avs/trace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/intel/avs/trace.c b/sound/soc/intel/avs/trace.c
index fcb7cfc823d6..c63eea909b5e 100644
--- a/sound/soc/intel/avs/trace.c
+++ b/sound/soc/intel/avs/trace.c
@@ -24,7 +24,7 @@ void trace_avs_msg_payload(const void *data, size_t size)
while (remaining > 0) {
u32 chunk;
- chunk = min(remaining, (size_t)MAX_CHUNK_SIZE);
+ chunk = min_t(size_t, remaining, MAX_CHUNK_SIZE);
trace_avs_ipc_msg_payload(data, chunk, offset, size);
remaining -= chunk;