summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonny Chevalier <chevalier.ronny@gmail.com>2014-11-30 02:16:30 +0100
committerRonny Chevalier <chevalier.ronny@gmail.com>2014-11-30 02:35:52 +0100
commit82b1412852b70d240a2a7b6ffd134776bd246642 (patch)
tree7ae22a9a2efaa887d84ad8489fd8d1ca22011173
parent787784c4c1b24a13207d18b415d60483cfbdeaa3 (diff)
network: remove unused variable
-rw-r--r--src/network/networkd-netdev-tuntap.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/network/networkd-netdev-tuntap.c b/src/network/networkd-netdev-tuntap.c
index 57cc77c555..4f449aea48 100644
--- a/src/network/networkd-netdev-tuntap.c
+++ b/src/network/networkd-netdev-tuntap.c
@@ -171,17 +171,8 @@ static void tuntap_done(NetDev *netdev) {
}
static int tuntap_verify(NetDev *netdev, const char *filename) {
- TunTap *t = NULL;
-
assert(netdev);
- if (netdev->kind == NETDEV_KIND_TUN)
- t = TUN(netdev);
- else
- t = TAP(netdev);
-
- assert(t);
-
if (netdev->mtu) {
log_warning_netdev(netdev, "MTU configured for %s, ignoring",
netdev_kind_to_string(netdev->kind));