Skip to contentSkip to conversation

wan: dlci: Remove unused netdev_priv pointer

PATCH Applied Christian Engelmayer 2 participants 2 messages Feb 7, 2014 – Feb 10, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wan: dlci: Remove unused netdev_priv pointer

Remove occurrences of unused pointer to network device private data in functions dlci_header() and dlci_receive().

Detected by Coverity: CID 139844, CID 139845.

---
 drivers/net/wan/dlci.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/net/wan/dlci.c +0 -5
index 0d1c759..19f7cb2 100644
@@ -71,12 +71,9 @@ static int dlci_header(struct sk_buff *skb, struct net_device *dev,
 		       const void *saddr, unsigned len)
 {
 	struct frhdr		hdr;
-	struct dlci_local	*dlp;
 	unsigned int		hlen;
 	char			*dest;
 
-	dlp = netdev_priv(dev);
-
 	hdr.control = FRAD_I_UI;
 	switch (type)
 	{
@@ -107,11 +104,9 @@ static int dlci_header(struct sk_buff *skb, struct net_device *dev,
 
 static void dlci_receive(struct sk_buff *skb, struct net_device *dev)
 {
-	struct dlci_local *dlp;
 	struct frhdr		*hdr;
 	int					process, header;
 
-	dlp = netdev_priv(dev);
 	if (!pskb_may_pull(skb, sizeof(*hdr))) {
 		netdev_notice(dev, "invalid data no header\n");
 		dev->stats.rx_errors++;
Signature · 1 line
1.8.3.2