From 4ca85130dbf05efb696ea414bdcde7cd9280ffb0 Mon Sep 17 00:00:00 2001 From: Ethan Jackson Date: Fri, 28 Jan 2011 19:31:07 -0800 Subject: [PATCH] dpif-linux: Remove extraneous name variable. Fixes a "used uninitialized" warning. --- lib/dpif-linux.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/dpif-linux.c b/lib/dpif-linux.c index f08a2589..cef914e9 100644 --- a/lib/dpif-linux.c +++ b/lib/dpif-linux.c @@ -209,7 +209,6 @@ static int open_dpif(const struct dpif_linux_dp *dp, struct dpif **dpifp) { struct dpif_linux *dpif; - char *name; int error; int i; @@ -222,7 +221,6 @@ open_dpif(const struct dpif_linux_dp *dp, struct dpif **dpifp) dpif_init(&dpif->dpif, &dpif_linux_class, dp->name, dp->dp_ifindex, dp->dp_ifindex); - free(name); dpif->mc_sock = NULL; for (i = 0; i < DPIF_N_UC_TYPES; i++) { -- 2.30.2