mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
Cleanup: Remove unnecessary explicit casts of pointers from allocators
The Linux 5.16.14 kernel's coccicheck caught these. The semantic patch that caught them was: ./scripts/coccinelle/api/alloc/alloc_cast.cocci 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
80d64bb85f
commit
7384ec65cd
@@ -784,9 +784,9 @@ create_fallback_mem(struct zstd_fallback_mem *mem, size_t size)
|
||||
static void __init
|
||||
zstd_mempool_init(void)
|
||||
{
|
||||
zstd_mempool_cctx = (struct zstd_pool *)
|
||||
zstd_mempool_cctx =
|
||||
kmem_zalloc(ZSTD_POOL_MAX * sizeof (struct zstd_pool), KM_SLEEP);
|
||||
zstd_mempool_dctx = (struct zstd_pool *)
|
||||
zstd_mempool_dctx =
|
||||
kmem_zalloc(ZSTD_POOL_MAX * sizeof (struct zstd_pool), KM_SLEEP);
|
||||
|
||||
for (int i = 0; i < ZSTD_POOL_MAX; i++) {
|
||||
|
||||
Reference in New Issue
Block a user