[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140209001617.1d1543d4@spike>
Date: Sun, 9 Feb 2014 00:16:17 +0100
From: Christian Engelmayer <cengelma@....at>
To: Jon Mason <jdmason@...zu.us>
Cc: netdev@...r.kernel.org, David Miller <davem@...emloft.net>,
Patrick McHardy <kaber@...sh.net>,
Jingoo Han <jg1.han@...sung.com>,
Masanari Iida <standby24x7@...il.com>,
John Stultz <john.stultz@...aro.org>,
dingtianhong <dingtianhong@...wei.com>,
Ben Hutchings <bhutchings@...arflare.com>,
stephen hemminger <stephen@...workplumber.org>,
Tom Herbert <therbert@...gle.com>
Subject: [PATCH] net: vxge: Remove unused device pointer
Remove occurrences of unused struct __vxge_hw_device pointer in functions
vxge_learn_mac() and vxge_rem_isr().
Detected by Coverity: CID 139839, CID 139842.
Signed-off-by: Christian Engelmayer <cengelma@....at>
---
drivers/net/ethernet/neterion/vxge/vxge-main.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/drivers/net/ethernet/neterion/vxge/vxge-main.c b/drivers/net/ethernet/neterion/vxge/vxge-main.c
index 1ded50ca..e46e869 100644
--- a/drivers/net/ethernet/neterion/vxge/vxge-main.c
+++ b/drivers/net/ethernet/neterion/vxge/vxge-main.c
@@ -726,9 +726,6 @@ static int vxge_learn_mac(struct vxgedev *vdev, u8 *mac_header)
int vpath_idx = 0;
enum vxge_hw_status status = VXGE_HW_OK;
struct vxge_vpath *vpath = NULL;
- struct __vxge_hw_device *hldev;
-
- hldev = pci_get_drvdata(vdev->pdev);
mac_address = (u8 *)&mac_addr;
memcpy(mac_address, mac_header, ETH_ALEN);
@@ -2443,9 +2440,6 @@ static void vxge_rem_msix_isr(struct vxgedev *vdev)
static void vxge_rem_isr(struct vxgedev *vdev)
{
- struct __vxge_hw_device *hldev;
- hldev = pci_get_drvdata(vdev->pdev);
-
#ifdef CONFIG_PCI_MSI
if (vdev->config.intr_type == MSI_X) {
vxge_rem_msix_isr(vdev);
--
1.8.3.2
Download attachment "signature.asc" of type "application/pgp-signature" (837 bytes)
Powered by blists - more mailing lists