Skip to content

Commit a88f92b

Browse files
Christian Engelmayerdavem330
authored andcommitted
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. Signed-off-by: Christian Engelmayer <cengelma@gmx.at> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 310f6fd commit a88f92b

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

‎drivers/net/wan/dlci.c‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,9 @@ static int dlci_header(struct sk_buff *skb, struct net_device *dev,
7171
const void *saddr, unsigned len)
7272
{
7373
struct frhdr hdr;
74-
struct dlci_local *dlp;
7574
unsigned int hlen;
7675
char *dest;
7776

78-
dlp = netdev_priv(dev);
79-
8077
hdr.control = FRAD_I_UI;
8178
switch (type)
8279
{
@@ -107,11 +104,9 @@ static int dlci_header(struct sk_buff *skb, struct net_device *dev,
107104

108105
static void dlci_receive(struct sk_buff *skb, struct net_device *dev)
109106
{
110-
struct dlci_local *dlp;
111107
struct frhdr *hdr;
112108
int process, header;
113109

114-
dlp = netdev_priv(dev);
115110
if (!pskb_may_pull(skb, sizeof(*hdr))) {
116111
netdev_notice(dev, "invalid data no header\n");
117112
dev->stats.rx_errors++;

0 commit comments

Comments
 (0)