Commit 6b5da52
scsi: scsi_debug: Use vcalloc() to simplify code
Use vcalloc() instead of vmalloc() followed by bitmap_zero() to simplify
the function sdebug_add_store().
Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com>
Link: https://lore.kernel.org/r/20250806124633.383426-3-rongqianfeng@vivo.com
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent daedd69 commit 6b5da52
1 file changed
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8782 | 8782 | | |
8783 | 8783 | | |
8784 | 8784 | | |
8785 | | - | |
8786 | | - | |
| 8785 | + | |
| 8786 | + | |
8787 | 8787 | | |
8788 | 8788 | | |
8789 | 8789 | | |
| |||
8792 | 8792 | | |
8793 | 8793 | | |
8794 | 8794 | | |
8795 | | - | |
8796 | | - | |
8797 | 8795 | | |
8798 | 8796 | | |
8799 | 8797 | | |
| |||
0 commit comments