tuntap: clean up cc --analyze

One complaint of a dead-store, smack it with a __diagused.
This commit is contained in:
Kyle Evans 2021-07-21 19:13:48 -05:00
parent 27ea55fc65
commit 51221b68fb

View File

@ -1042,7 +1042,7 @@ tunopen(struct cdev *dev, int flag, int mode, struct thread *td)
{
struct ifnet *ifp;
struct tuntap_softc *tp;
int error, tunflags;
int error __diagused, tunflags;
tunflags = 0;
CURVNET_SET(TD_TO_VNET(td));