HomeFreeBSD

FreeBSD: get_zfs_ioctl_version() should be cast to (void)

Description

FreeBSD: get_zfs_ioctl_version() should be cast to (void)

FreeBSD's Coverity scans complain that we ignore the return value. There
is no need to check the return value so we cast it to (void) to suppress
further complaints by static analyzers.

Reported-by: Coverity (CID 1018175)
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: szubersk <szuberskidamian@gmail.com>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #14136

Details

Provenance
Richard Yao <richard.yao@alumni.stonybrook.edu>Authored on Nov 3 2022, 5:58 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Nov 18 2022, 7:33 PM
Parents
rG9e7fc5da3806: Ubuntu 22.04 integration: GitHub workflows
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG31247c78b15a: FreeBSD: get_zfs_ioctl_version() should be cast to (void) (authored by Richard Yao <richard.yao@alumni.stonybrook.edu>).Nov 18 2022, 7:33 PM