From 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5 Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Tue, 22 Oct 2024 10:36:11 +0000 Subject: [PATCH] 修改4g拨号为QMI,需要在系统里后台执行quectel-CM --- kernel/drivers/net/hamradio/hdlcdrv.c | 20 ++------------------ 1 files changed, 2 insertions(+), 18 deletions(-) diff --git a/kernel/drivers/net/hamradio/hdlcdrv.c b/kernel/drivers/net/hamradio/hdlcdrv.c index 97e3bc6..e7413a6 100644 --- a/kernel/drivers/net/hamradio/hdlcdrv.c +++ b/kernel/drivers/net/hamradio/hdlcdrv.c @@ -1,23 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /*****************************************************************************/ /* * hdlcdrv.c -- HDLC packet radio network driver. * * Copyright (C) 1996-2000 Thomas Sailer (sailer@ife.ee.ethz.ch) - * - * 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, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * * Please note that the GPL allows you to use the driver, NOT the radio. * In order to use the radio, you need a license from the communications @@ -488,8 +475,7 @@ if (s->ops && s->ops->close) i = s->ops->close(dev); - if (s->skb) - dev_kfree_skb(s->skb); + dev_kfree_skb(s->skb); s->skb = NULL; s->opened = 0; return i; @@ -700,8 +686,6 @@ struct net_device *dev; struct hdlcdrv_state *s; int err; - - BUG_ON(ops == NULL); if (privsize < sizeof(struct hdlcdrv_state)) privsize = sizeof(struct hdlcdrv_state); -- Gitblit v1.6.2