Skip to content

Commit

Permalink
Cleanup: Remove NULL pointer check from dmu_send_impl()
Browse files Browse the repository at this point in the history
The pointer is to a structure member, so it is never NULL.

Coverity complained about this.

Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Richard Yao <[email protected]>
Closes openzfs#14042
  • Loading branch information
ryao authored and andrewc12 committed Nov 9, 2022
1 parent 44eae4c commit 5e85642
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions module/zfs/dmu_send.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 5e85642

Please sign in to comment.