forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/drivers/isdn/mISDN/hwchannel.c
....@@ -1,18 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 *
34 * Author Karsten Keil <kkeil@novell.com>
45 *
56 * Copyright 2008 by Karsten Keil <kkeil@novell.com>
6
- *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License version 2 as
9
- * published by the Free Software Foundation.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
15
- *
167 */
178
189 #include <linux/gfp.h>
....@@ -483,8 +474,8 @@
483474 if (bch->rx_skb) {
484475 len = skb_tailroom(bch->rx_skb);
485476 if (len < reqlen) {
486
- pr_warning("B%d no space for %d (only %d) bytes\n",
487
- bch->nr, reqlen, len);
477
+ pr_warn("B%d no space for %d (only %d) bytes\n",
478
+ bch->nr, reqlen, len);
488479 if (test_bit(FLG_TRANSPARENT, &bch->Flags)) {
489480 /* send what we have now and try a new buffer */
490481 recv_Bchannel(bch, 0, true);
....@@ -517,8 +508,7 @@
517508 }
518509 bch->rx_skb = mI_alloc_skb(len, GFP_ATOMIC);
519510 if (!bch->rx_skb) {
520
- pr_warning("B%d receive no memory for %d bytes\n",
521
- bch->nr, len);
511
+ pr_warn("B%d receive no memory for %d bytes\n", bch->nr, len);
522512 len = -ENOMEM;
523513 }
524514 return len;