mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-24 03:08:51 +03:00
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
This commit is contained in:
committed by
Brian Behlendorf
parent
e6328fda2e
commit
3b2f9c1ec8
@@ -1842,8 +1842,7 @@ send_reader_thread(void *arg)
|
||||
continue;
|
||||
}
|
||||
uint64_t file_max =
|
||||
(dn->dn_maxblkid < range->end_blkid ?
|
||||
dn->dn_maxblkid : range->end_blkid);
|
||||
MIN(dn->dn_maxblkid, range->end_blkid);
|
||||
/*
|
||||
* The object exists, so we need to try to find the
|
||||
* blkptr for each block in the range we're processing.
|
||||
|
||||
Reference in New Issue
Block a user