staging: unisys: remove bogus error checking
authorNeil Horman <nhorman@redhat.com>
Tue, 21 Jul 2015 13:55:48 +0000 (09:55 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Jul 2015 04:20:25 +0000 (21:20 -0700)
The netdev we're testing for can't be removed, because its never
unregistered, so don't bother checking for it

Signed-off-by: Neil Horman <nhorman@redhat.com>
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visornic/visornic_main.c

index a5da40066bc7401ac892409b82569976a92dc062..4d49937d3856e3f82ed59dd55109a127fad0b780 100644 (file)
@@ -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);