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

Qianfeng Rong posted 2 patches 2 months ago
drivers/scsi/ipr.c        | 8 ++++----
drivers/scsi/scsi_debug.c | 6 ++----
2 files changed, 6 insertions(+), 8 deletions(-)
[PATCH v2 0/2] Use vmalloc_array and vcalloc to simplify code
Posted by Qianfeng Rong 2 months ago
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