Commit 547e4c90 authored by Neil Horman's avatar Neil Horman Committed by Greg Kroah-Hartman

staging: unisys: remove bogus error checking

The netdev we're testing for can't be removed, because its never
unregistered, so don't bother checking for it
Signed-off-by: default avatarNeil Horman <nhorman@redhat.com>
Signed-off-by: default avatarBenjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 15a4d213
......@@ -1164,18 +1164,6 @@ visornic_rx(struct uiscmdrsp *cmdrsp)
skb = cmdrsp->net.buf;
netdev = skb->dev;
if (!netdev) {
/* We must have previously downed this network device and
* this skb and device is no longer valid. This also means
* the skb reference was removed from devdata->rcvbuf so no
* need to search for it.
* All we can do is free the skb and return.
* Note: We crash if we try to log this here.
*/
kfree_skb(skb);
return;
}
devdata = netdev_priv(netdev);
spin_lock_irqsave(&devdata->priv_lock, flags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment