chiark / gitweb /
networkctl: remove unused variable
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 1 Jan 2015 16:53:25 +0000 (11:53 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 1 Jan 2015 18:36:43 +0000 (13:36 -0500)
src/network/networkctl.c

index cc3ea85e8c0bc94258aefa9551e36fcdb87100eb..f85058c2726d90adf5eab463fc480e639b3a00d8 100644 (file)
@@ -900,7 +900,6 @@ static int link_lldp_status(int argc, char *argv[], void *userdata) {
 
         usec_t time, until, ttl;
         uint32_t capability;
-        char buf[LINE_MAX];
         int i, r, c, j;
         size_t ll;
         char **s;
@@ -955,15 +954,11 @@ static int link_lldp_status(int argc, char *argv[], void *userdata) {
                                         continue;
 
                                 if (streq(a, "_Chassis")) {
-
-                                        memzero(buf, LINE_MAX);
-
                                         chassis = strdup(b);
                                         if (!chassis)
                                                 return -ENOMEM;
 
                                 } else if (streq(a, "_Port")) {
-
                                         port = strdup(b);
                                         if (!port)
                                                 return -ENOMEM;