]> git.baikalelectronics.ru Git - kernel.git/commit
s390/dasd: Use kzalloc instead of kmalloc/memset
authorHaowen Bai <baihaowen@meizu.com>
Thu, 5 May 2022 14:17:33 +0000 (16:17 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 6 May 2022 02:08:27 +0000 (20:08 -0600)
commit27b2fca95096e61f4ca8fb6761a48f5e4a17284c
treebf7da0dadd051f5330e875f5a8b2d9a7d30df1bd
parent6c093dc789ccba0992ba9b6be89d0e4c533bcf7c
s390/dasd: Use kzalloc instead of kmalloc/memset

Use kzalloc rather than duplicating its implementation, which
makes code simple and easy to understand.

Signed-off-by: Haowen Bai <baihaowen@meizu.com>
Reviewed-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Stefan Haberland <sth@linux.ibm.com>
Link: https://lore.kernel.org/r/20220505141733.1989450-6-sth@linux.ibm.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/s390/block/dasd_eckd.c