diff options
author | Neil Horman <nhorman@redhat.com> | 2015-07-21 09:55:48 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-07-22 21:20:25 -0700 |
commit | 547e4c90aee5f4ecfed23a16b621629071e41f05 (patch) | |
tree | 12128bec75999c88d71d955159bfa136237394f8 /drivers/staging/unisys/visornic | |
parent | staging: unisys: remove visornic_ioctl (diff) | |
download | linux-dev-547e4c90aee5f4ecfed23a16b621629071e41f05.tar.xz linux-dev-547e4c90aee5f4ecfed23a16b621629071e41f05.zip |
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: Neil Horman <nhorman@redhat.com>
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/unisys/visornic')
-rw-r--r-- | drivers/staging/unisys/visornic/visornic_main.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/staging/unisys/visornic/visornic_main.c b/drivers/staging/unisys/visornic/visornic_main.c index a5da40066bc7..4d49937d3856 100644 --- a/drivers/staging/unisys/visornic/visornic_main.c +++ b/drivers/staging/unisys/visornic/visornic_main.c @@ -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); |