tuntap: clean up cc --analyze
One complaint of a dead-store, smack it with a __diagused.
This commit is contained in:
parent
27ea55fc65
commit
51221b68fb
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user