Print this page
8485 Remove set but unused variables in usr/src/cmd

@@ -20,10 +20,11 @@
  */
 
 /*
  * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
  * Copyright 2017 Nexenta Systems, Inc.
+ * Copyright 2017 Gary Mills
  */
 
 #include <arpa/inet.h>
 #include <errno.h>
 #include <getopt.h>

@@ -505,25 +506,21 @@
         const char              *prop_name = statep->sps_pname;
         char                    *ifname = statep->sps_ifname;
         char                    *propval = statep->sps_propval;
         uint_t                  proto = statep->sps_proto;
         size_t                  propsize = MAXPROPVALLEN;
-        char                    *object;
         ipadm_status_t          status;
 
         if (statep->sps_ifprop) {
                 status = ipadm_get_ifprop(iph, ifname, prop_name, propval,
                     &propsize, proto, flags);
-                object = ifname;
         } else if (statep->sps_modprop) {
                 status = ipadm_get_prop(iph, prop_name, propval, &propsize,
                     proto, flags);
-                object = ipadm_proto2str(proto);
         } else {
                 status = ipadm_get_addrprop(iph, prop_name, propval, &propsize,
                     statep->sps_aobjname, flags);
-                object = statep->sps_aobjname;
         }
 
         if (status != IPADM_SUCCESS) {
                 if ((status == IPADM_NOTFOUND && (flags & IPADM_OPT_PERSIST)) ||
                     status == IPADM_ENXIO) {