diff options
author | Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com> | 2023-01-13 20:03:10 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-01-13 13:30:29 +0100 |
commit | 4a1b1b65e410df82add3c5bc5be7bfb0c62f7f73 (patch) | |
tree | d744b4656e5d0438ce85f11ab22bbda467d3acf3 /sound/soc/intel/avs/trace.c | |
parent | ASoC: Intel: avs: Correctly access topology fields (diff) | |
download | linux-4a1b1b65e410df82add3c5bc5be7bfb0c62f7f73.tar.xz linux-4a1b1b65e410df82add3c5bc5be7bfb0c62f7f73.zip |
ASoC: Intel: avs: Use min_t instead of min with cast
Checkpatch script recommends using min_t instead of min with the cast.
Fixes: 69b23b3937a1 ("ASoC: Intel: avs: Event tracing")
Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://lore.kernel.org/r/20230113190310.1451693-4-amadeuszx.slawinski@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/avs/trace.c')
-rw-r--r-- | sound/soc/intel/avs/trace.c | 2 |
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; |