]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ixgbe(4): Eliminate bogus sizeof() expressions
authorcem <cem@FreeBSD.org>
Wed, 29 Jan 2020 05:31:40 +0000 (05:31 +0000)
committercem <cem@FreeBSD.org>
Wed, 29 Jan 2020 05:31:40 +0000 (05:31 +0000)
commit5f15f808f29dca9785a0c9f34c1f1d63849edf40
tree7c945841aa91daa4090182a448d53820083b076a
parentbea10e942ea1484928041029de3f197c7bef45ae
ixgbe(4): Eliminate bogus sizeof() expressions

All of these uses of sizeof() were on the wrong type in relation to the pointer
passed to SYSCTL_ADD_PROC as arg1.  Fortunately, none of the handlers actually
use arg2.  So just don't pass a (non-zero) arg2.

Reported by: Coverity
CID: 1007701
sys/dev/ixgbe/if_ix.c