mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 23:25:07 +00:00
[PATCH] Remove useless check in drivers/net/pcmcia/xirc2ps_cs.c
hi, coverity choked at this check (id #223), assuming that skb might be NULL and used anyways later. Since start_hard_xmit() always gets called with a valid skb, the check is useless and this patch removes it. Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
parent
722fdb3359
commit
da4f5ccf60
1 changed files with 1 additions and 1 deletions
|
@ -1359,7 +1359,7 @@ do_start_xmit(struct sk_buff *skb, struct net_device *dev)
|
||||||
kio_addr_t ioaddr = dev->base_addr;
|
kio_addr_t ioaddr = dev->base_addr;
|
||||||
int okay;
|
int okay;
|
||||||
unsigned freespace;
|
unsigned freespace;
|
||||||
unsigned pktlen = skb? skb->len : 0;
|
unsigned pktlen = skb->len;
|
||||||
|
|
||||||
DEBUG(1, "do_start_xmit(skb=%p, dev=%p) len=%u\n",
|
DEBUG(1, "do_start_xmit(skb=%p, dev=%p) len=%u\n",
|
||||||
skb, dev, pktlen);
|
skb, dev, pktlen);
|
||||||
|
|
Loading…
Reference in a new issue