Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Mar 2021 09:09:43 GMT
From:      Ryan Moeller <freqlabs@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: dc4fae442b86 - stable/13 - sbin/ifconfig: Drop local name var in sfp_status
Message-ID:  <202103140909.12E99hBE078273@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by freqlabs:

URL: https://cgit.FreeBSD.org/src/commit/?id=dc4fae442b86cb1c2ffc4732e22392e1832197f4

commit dc4fae442b86cb1c2ffc4732e22392e1832197f4
Author:     Ryan Moeller <freqlabs@FreeBSD.org>
AuthorDate: 2021-02-28 02:15:11 +0000
Commit:     Ryan Moeller <freqlabs@FreeBSD.org>
CommitDate: 2021-03-14 08:05:42 +0000

    sbin/ifconfig: Drop local name var in sfp_status
    
    There is already a globally defined name variable.
    
    (cherry picked from commit 9995455218ff19df9cf0dcaf0198269dc76eeb2d)
---
 sbin/ifconfig/sfp.c | 3 ---
 1 file changed, 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;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103140909.12E99hBE078273>