Cleanup: Use MIN() macro
commit3b2f9c1ec81a0c7059a81f5b4ae1e8f6296c090b
authorRichard Yao <richard.yao@alumni.stonybrook.edu>
Tue, 10 Jan 2023 21:41:26 +0000 (10 16:41 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 13 Jan 2023 00:00:23 +0000 (12 16:00 -0800)
treefef70ffe28487a1bb82b32a267256c2a67ea895f
parente6328fda2e5cb9644b54b797afb139a3b76dfd64
Cleanup: Use MIN() macro

The Linux 5.16.14 kernel's coccicheck caught this. The semantic
patch that caught it was:

./scripts/coccinelle/misc/minmax.cocci

There was a third opportunity to use `MIN()`, but that was in
`FSE_minTableLog()` in `module/zstd/lib/compress/fse_compress.c`.
Upstream zstd has yet to make this change and I did not want to change
header includes just for MIN, or do a one off, so I left it alone.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #14372
module/icp/algs/modes/ccm.c
module/zfs/dmu_send.c