Loading drivers/net/usb/lan78xx.c +11 −24 Original line number Diff line number Diff line // SPDX-License-Identifier: GPL-2.0+ /* * Copyright (C) 2015 Microchip Technology * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, see <http://www.gnu.org/licenses/>. */ #include <linux/version.h> #include <linux/module.h> Loading Loading @@ -1838,7 +1826,6 @@ static int lan78xx_mdio_init(struct lan78xx_net *dev) node = of_get_child_by_name(dev->udev->dev.of_node, "mdio"); ret = of_mdiobus_register(dev->mdiobus, node); if (node) of_node_put(node); if (ret) { netdev_err(dev->net, "can't register MDIO bus\n"); Loading Loading @@ -3343,9 +3330,9 @@ static void lan78xx_tx_bh(struct lan78xx_net *dev) count = 0; length = 0; spin_lock_irqsave(&tqp->lock, flags); for (skb = tqp->next; pkt_cnt < tqp->qlen; skb = skb->next) { skb_queue_walk(tqp, skb) { if (skb_is_gso(skb)) { if (pkt_cnt) { if (!skb_queue_is_first(tqp, skb)) { /* handle previous packets first */ break; } Loading Loading
drivers/net/usb/lan78xx.c +11 −24 Original line number Diff line number Diff line // SPDX-License-Identifier: GPL-2.0+ /* * Copyright (C) 2015 Microchip Technology * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, see <http://www.gnu.org/licenses/>. */ #include <linux/version.h> #include <linux/module.h> Loading Loading @@ -1838,7 +1826,6 @@ static int lan78xx_mdio_init(struct lan78xx_net *dev) node = of_get_child_by_name(dev->udev->dev.of_node, "mdio"); ret = of_mdiobus_register(dev->mdiobus, node); if (node) of_node_put(node); if (ret) { netdev_err(dev->net, "can't register MDIO bus\n"); Loading Loading @@ -3343,9 +3330,9 @@ static void lan78xx_tx_bh(struct lan78xx_net *dev) count = 0; length = 0; spin_lock_irqsave(&tqp->lock, flags); for (skb = tqp->next; pkt_cnt < tqp->qlen; skb = skb->next) { skb_queue_walk(tqp, skb) { if (skb_is_gso(skb)) { if (pkt_cnt) { if (!skb_queue_is_first(tqp, skb)) { /* handle previous packets first */ break; } Loading