From: Ethan Jackson Date: Sat, 29 Jan 2011 03:31:07 +0000 (-0800) Subject: dpif-linux: Remove extraneous name variable. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ca85130dbf05efb696ea414bdcde7cd9280ffb0;p=openvswitch dpif-linux: Remove extraneous name variable. Fixes a "used uninitialized" warning. --- 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++) {