From 84243acb91b754de167c6bfc9a7db68e46b91870 Mon Sep 17 00:00:00 2001 From: Richard Yao Date: Mon, 17 Oct 2022 17:57:59 -0400 Subject: [PATCH] Cleanup: Remove NULL pointer check from dmu_send_impl() The pointer is to a structure member, so it is never NULL. Coverity complained about this. Reviewed-by: Brian Behlendorf Signed-off-by: Richard Yao Closes #14042 --- module/zfs/dmu_send.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/module/zfs/dmu_send.c b/module/zfs/dmu_send.c index ceef87a30..767b341a4 100644 --- a/module/zfs/dmu_send.c +++ b/module/zfs/dmu_send.c @@ -2510,8 +2510,7 @@ dmu_send_impl(struct dmu_send_params *dspp) } if (featureflags & DMU_BACKUP_FEATURE_RAW) { - uint64_t ivset_guid = (ancestor_zb != NULL) ? - ancestor_zb->zbm_ivset_guid : 0; + uint64_t ivset_guid = ancestor_zb->zbm_ivset_guid; nvlist_t *keynvl = NULL; ASSERT(os->os_encrypted);