aboutsummaryrefslogtreecommitdiff
path: root/sbin/ifconfig
diff options
context:
space:
mode:
authorRyan Moeller <freqlabs@FreeBSD.org>2021-02-28 02:15:11 +0000
committerRyan Moeller <freqlabs@FreeBSD.org>2021-02-28 02:20:38 +0000
commit9995455218ff19df9cf0dcaf0198269dc76eeb2d (patch)
treea7ea86ce8d6fa463e9de42640e497ebd3796eba8 /sbin/ifconfig
parenta0ebb915045ed0056decec5f001471af4e999f61 (diff)
downloadsrc-9995455218ff19df9cf0dcaf0198269dc76eeb2d.tar.gz
src-9995455218ff19df9cf0dcaf0198269dc76eeb2d.zip
sbin/ifconfig: Drop local name var in sfp_status
There is already a globally defined name variable. MFC after: 1 week
Diffstat (limited to 'sbin/ifconfig')
-rw-r--r--sbin/ifconfig/sfp.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sbin/ifconfig/sfp.c b/sbin/ifconfig/sfp.c
index b7bdc74d42e8..15ff22639060 100644
--- a/sbin/ifconfig/sfp.c
+++ b/sbin/ifconfig/sfp.c
@@ -62,15 +62,12 @@ sfp_status(int s, struct ifreq *ifr, int verbose)
struct ifconfig_sfp_vendor_info vendor_info;
struct ifconfig_sfp_status status;
ifconfig_handle_t *lifh;
- const char *name;
size_t channel_count;
lifh = ifconfig_open();
if (lifh == NULL)
return;
- name = ifr->ifr_name;
-
if (ifconfig_sfp_get_sfp_info(lifh, name, &info) == -1)
goto close;