You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
dm: use kzalloc
Convert kmalloc() + memset() to kzalloc(). Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
This commit is contained in:
committed by
Alasdair G Kergon
parent
6f3c3f0afa
commit
094262db9e
@@ -94,12 +94,10 @@ out:
|
||||
|
||||
static struct ps_internal *_alloc_path_selector(struct path_selector_type *pst)
|
||||
{
|
||||
struct ps_internal *psi = kmalloc(sizeof(*psi), GFP_KERNEL);
|
||||
struct ps_internal *psi = kzalloc(sizeof(*psi), GFP_KERNEL);
|
||||
|
||||
if (psi) {
|
||||
memset(psi, 0, sizeof(*psi));
|
||||
if (psi)
|
||||
psi->pst = *pst;
|
||||
}
|
||||
|
||||
return psi;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user