hc
2024-09-20 a36159eec6ca17402b0e146b86efaf76568dc353
kernel/drivers/net/wan/dlci.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * DLCI Implementation of Frame Relay protocol for Linux, according to
34 * RFC 1490. This generic device provides en/decapsulation for an
....@@ -21,11 +22,6 @@
2122 * 0.25 Mike McLagan Converted to use SIOC IOCTL calls
2223 * 0.30 Jim Freeman Fixed to allow IPX traffic
2324 * 0.35 Michael Elizabeth Fixed incorrect memcpy_fromfs
24
- *
25
- * This program is free software; you can redistribute it and/or
26
- * modify it under the terms of the GNU General Public License
27
- * as published by the Free Software Foundation; either version
28
- * 2 of the License, or (at your option) any later version.
2925 */
3026
3127 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
....@@ -299,14 +295,13 @@
299295 {
300296 struct dlci_local *dlp;
301297 struct frad_local *flp;
302
- int err;
303298
304299 netif_stop_queue(dev);
305300
306301 dlp = netdev_priv(dev);
307302
308303 flp = netdev_priv(dlp->slave);
309
- err = (*flp->deactivate)(dlp->slave, dev);
304
+ (*flp->deactivate)(dlp->slave, dev);
310305
311306 return 0;
312307 }