zfs: main: don't NULL-check infallible safe_malloc()
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13229
This commit is contained in:
parent
18dbf5c8c3
commit
3cfbeb4e90
|
@ -5473,8 +5473,6 @@ parse_fs_perm_set(fs_perm_set_t *fspset, nvlist_t *nvl)
|
|||
data_type_t type = nvpair_type(nvp);
|
||||
fs_perm_t *fsperm = NULL;
|
||||
fs_perm_node_t *node = safe_malloc(sizeof (fs_perm_node_t));
|
||||
if (node == NULL)
|
||||
nomem();
|
||||
|
||||
fsperm = &node->fspn_fsperm;
|
||||
|
||||
|
|
Loading…
Reference in New Issue