projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19cfd69
)
ASoC: Intel: avs: Use min_t instead of min with cast
author
Amadeusz Sławiński
<amadeuszx.slawinski@linux.intel.com>
Fri, 13 Jan 2023 19:03:10 +0000
(20:03 +0100)
committer
Mark Brown
<broonie@kernel.org>
Fri, 13 Jan 2023 12:30:29 +0000
(12:30 +0000)
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>
sound/soc/intel/avs/trace.c
patch
|
blob
|
history
diff --git
a/sound/soc/intel/avs/trace.c
b/sound/soc/intel/avs/trace.c
index fcb7cfc823d6aa82edb7d01e3e3f2bd1141666aa..c63eea909b5e86ef3d5b2fa0614b0a202257abbc 100644
(file)
--- 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;