diff options
author | Toomas Soome <tsoome@me.com> | 2021-12-25 22:40:53 +0200 |
---|---|---|
committer | Toomas Soome <tsoome@me.com> | 2022-01-12 00:19:58 +0200 |
commit | c12f119108dcac3bfe73ac01ce1bbc643a733ca2 (patch) | |
tree | be8de2218d1e0e0eb37df9f851351ac264b51660 /usr/src | |
parent | 7daa540591d7332190b10fc3a818bfd5e7d536fe (diff) | |
download | illumos-gate-c12f119108dcac3bfe73ac01ce1bbc643a733ca2.tar.gz |
14390 av1394: build errors with gcc 11
Reviewed by: Peter Tribble <peter.tribble@gmail.com>
Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/uts/common/io/1394/targets/av1394/av1394_isoch.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/uts/common/io/1394/targets/av1394/av1394_isoch.c b/usr/src/uts/common/io/1394/targets/av1394/av1394_isoch.c index b4902b0f55..8e05ffcf9b 100644 --- a/usr/src/uts/common/io/1394/targets/av1394/av1394_isoch.c +++ b/usr/src/uts/common/io/1394/targets/av1394/av1394_isoch.c @@ -589,7 +589,7 @@ av1394_ioctl_isoch_handle2ic(av1394_inst_t *avp, void *arg) int num = (int)(intptr_t)arg; av1394_isoch_t *ip = &avp->av_i; - if (num >= (sizeof (ip->i_ic) / sizeof (av1394_ic_t))) { + if (num >= NELEM(ip->i_ic)) { TNF_PROBE_0(av1394_ioctl_isoch_handle2ic_error_range, AV1394_TNF_ISOCH_ERROR, ""); return (NULL); @@ -665,7 +665,7 @@ av1394_ioctl_recv(av1394_inst_t *avp, void *arg, int mode) return (EFAULT); } num = recv.rx_handle; - if (num >= (sizeof (ip->i_ic) / sizeof (av1394_ic_t))) { + if (num >= NELEM(ip->i_ic)) { TNF_PROBE_0(av1394_ioctl_recv_error_range, AV1394_TNF_ISOCH_ERROR, ""); return (EINVAL); @@ -707,7 +707,7 @@ av1394_ioctl_xmit(av1394_inst_t *avp, void *arg, int mode) return (EFAULT); } num = xmit.tx_handle; - if (num >= (sizeof (ip->i_ic) / sizeof (av1394_ic_t))) { + if (num >= NELEM(ip->i_ic)) { TNF_PROBE_0(av1394_ioctl_xmit_error_range, AV1394_TNF_ISOCH_ERROR, ""); return (EINVAL); |