mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
dpif-linux: Remove extraneous name variable.
Fixes a "used uninitialized" warning.
This commit is contained in:
@@ -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++) {
|
||||
|
Reference in New Issue
Block a user