From da6db152fd4707484a7ed18ea54d99b83cf687fd 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. Signed-off-by: Richard Yao --- 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 3afb714fcece..59b60fdd67c7 100644 --- a/module/zfs/dmu_send.c +++ b/module/zfs/dmu_send.c @@ -2508,8 +2508,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);