aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sfxge/common
diff options
context:
space:
mode:
authorAndrew Rybchenko <arybchik@FreeBSD.org>2016-06-01 14:16:16 +0000
committerAndrew Rybchenko <arybchik@FreeBSD.org>2016-06-01 14:16:16 +0000
commit6bf4498cbc2f4d72fb10e7e2803e52e6951f3fcd (patch)
tree776c99f8ca91988668f2dbff5f04b9d17e276ad0 /sys/dev/sfxge/common
parent99ea4d4733fe365513192a695d94adfc76265311 (diff)
downloadsrc-6bf4498cbc2f4d72fb10e7e2803e52e6951f3fcd.tar.gz
src-6bf4498cbc2f4d72fb10e7e2803e52e6951f3fcd.zip
sfxge(4): cleanup: remove unused variables in common code
Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 1 week
Notes
Notes: svn path=/head/; revision=301127
Diffstat (limited to 'sys/dev/sfxge/common')
-rw-r--r--sys/dev/sfxge/common/efx_ev.c1
-rw-r--r--sys/dev/sfxge/common/efx_lic.c9
-rw-r--r--sys/dev/sfxge/common/efx_mcdi.c1
3 files changed, 0 insertions, 11 deletions
diff --git a/sys/dev/sfxge/common/efx_ev.c b/sys/dev/sfxge/common/efx_ev.c
index b8aae06ac2fb..47fa9aa0c839 100644
--- a/sys/dev/sfxge/common/efx_ev.c
+++ b/sys/dev/sfxge/common/efx_ev.c
@@ -349,7 +349,6 @@ efx_ev_qprefetch(
__in efx_evq_t *eep,
__in unsigned int count)
{
- efx_nic_t *enp = eep->ee_enp;
unsigned int offset;
EFSYS_ASSERT3U(eep->ee_magic, ==, EFX_EVQ_MAGIC);
diff --git a/sys/dev/sfxge/common/efx_lic.c b/sys/dev/sfxge/common/efx_lic.c
index 21c4b8527c8c..c1c05e28cba4 100644
--- a/sys/dev/sfxge/common/efx_lic.c
+++ b/sys/dev/sfxge/common/efx_lic.c
@@ -534,8 +534,6 @@ efx_lic_v1v2_validate_key(
__in uint32_t length
)
{
- const efx_lic_ops_t *elop = enp->en_elop;
- efx_rc_t rc;
uint16_t tlv_type;
uint16_t tlv_length;
@@ -658,7 +656,6 @@ efx_lic_v1v2_delete_key(
__out uint32_t *deltap
)
{
- efx_rc_t rc;
uint32_t move_start = offset + length;
uint32_t move_length = end - move_start;
@@ -1158,7 +1155,6 @@ efx_lic_v3_validate_key(
)
{
// Check key is a valid V3 key
- efx_rc_t rc;
uint8_t key_type;
uint8_t key_length;
@@ -1396,8 +1392,6 @@ efx_lic_check_support(
efx_lic_fini(
__in efx_nic_t *enp)
{
- const efx_lic_ops_t *elop = enp->en_elop;
-
EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_PROBE);
EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_LIC);
@@ -1573,7 +1567,6 @@ efx_lic_find_key(
)
{
const efx_lic_ops_t *elop = enp->en_elop;
- boolean_t rc;
EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_LIC);
@@ -1599,8 +1592,6 @@ efx_lic_validate_key(
{
const efx_lic_ops_t *elop = enp->en_elop;
boolean_t rc;
- uint16_t tlv_type;
- uint16_t tlv_length;
EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_LIC);
diff --git a/sys/dev/sfxge/common/efx_mcdi.c b/sys/dev/sfxge/common/efx_mcdi.c
index e7e5f94b0cfc..d50e7c70265d 100644
--- a/sys/dev/sfxge/common/efx_mcdi.c
+++ b/sys/dev/sfxge/common/efx_mcdi.c
@@ -795,7 +795,6 @@ efx_mcdi_get_proxy_handle(
__in efx_mcdi_req_t *emrp,
__out uint32_t *handlep)
{
- efx_mcdi_iface_t *emip = &(enp->en_mcdi.em_emip);
efx_rc_t rc;
/*