mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-25 03:37:45 +03:00
libzfs: don't NULL-check infallible allocations
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13229
This commit is contained in:
@@ -783,8 +783,6 @@ derive_key(libzfs_handle_t *hdl, zfs_keyformat_t format, uint64_t iters,
|
||||
*key_out = NULL;
|
||||
|
||||
key = zfs_alloc(hdl, WRAPPING_KEY_LEN);
|
||||
if (!key)
|
||||
return (ENOMEM);
|
||||
|
||||
switch (format) {
|
||||
case ZFS_KEYFORMAT_RAW:
|
||||
|
||||
Reference in New Issue
Block a user