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.

Signed-off-by: Richard Yao <[email protected]>
  • Loading branch information
ryao committed Oct 17, 2022
1 parent cf0edf3 commit da6db15
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 @@ -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);

Expand Down

0 comments on commit da6db15

Please sign in to comment.