]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ixgbe(4): Eliminate bogus sizeof() expressions
authorConrad Meyer <cem@FreeBSD.org>
Wed, 29 Jan 2020 05:31:40 +0000 (05:31 +0000)
committerConrad Meyer <cem@FreeBSD.org>
Wed, 29 Jan 2020 05:31:40 +0000 (05:31 +0000)
commitd09fbcd0b6eae765a190eaa4dc931050af7bd25f
tree7c945841aa91daa4090182a448d53820083b076a
parentd71e0db25bd9c66726cbba8e424937aa3a0e87c4
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