[PATCH v2 0/2] Use vmalloc_array and vcalloc to simplify code

Qianfeng Rong
2025-08-05T02:26:51Z

Use vmalloc_array() instead of vmalloc() to simplify the functions
ipr_alloc_dump().

Use vcalloc() instead of vmalloc() followed by bitmap_zero() to simplify
the functions sdebug_add_store().

Compile-tested only.

Qianfeng Rong (2):
scsi: ipr: Use vmalloc_array to simplify code
scsi: scsi_debug: Use vcalloc to simplify code

drivers/scsi/ipr.c | 8 ++++----
drivers/scsi/scsi_debug.c | 6 ++----
2 files changed, 6 insertions(+), 8 deletions(-)

--
2.34.1