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 <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes openzfs#14042
  • Loading branch information
ryao authored and behlendorf committed Oct 18, 2022
1 parent fb823de commit 84243ac
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 84243ac

Please sign in to comment.