]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ichwd: add a few assertions about tco_version
authoravg <avg@FreeBSD.org>
Tue, 18 Dec 2018 17:17:53 +0000 (17:17 +0000)
committeravg <avg@FreeBSD.org>
Tue, 18 Dec 2018 17:17:53 +0000 (17:17 +0000)
commit3535b6c2ca2d207e88d58ba21c0e2bf0b657ccfa
tree9779078e21800e0f69df6e7ff6140c6e9f31c756
parentf3462a1719ca40941e870cbc1d71149062c49a85
ichwd: add a few assertions about tco_version

Those should ensure correctness of ichwd_find_ich_lpc_bridge() and
ichwd_find_ich_lpc_bridge() as well as make it easier for both humans
and static analyzers to see the relation between tco_version and ich and
smb variables in ichwd_identify().

Reported by: Coverity
CID: 13963141396317
MFC after: 10 days
sys/dev/ichwd/ichwd.c