diff options
Diffstat (limited to 'drivers/net/fddi/defza.c')
-rw-r--r-- | drivers/net/fddi/defza.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/fddi/defza.c b/drivers/net/fddi/defza.c index 3b7f10a5f06a..c5cae8e74dc4 100644 --- a/drivers/net/fddi/defza.c +++ b/drivers/net/fddi/defza.c | |||
@@ -1,4 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | 1 | // SPDX-License-Identifier: GPL-2.0+ |
2 | /* FDDI network adapter driver for DEC FDDIcontroller 700/700-C devices. | 2 | /* FDDI network adapter driver for DEC FDDIcontroller 700/700-C devices. |
3 | * | 3 | * |
4 | * Copyright (c) 2018 Maciej W. Rozycki | 4 | * Copyright (c) 2018 Maciej W. Rozycki |
@@ -56,7 +56,7 @@ | |||
56 | #define DRV_VERSION "v.1.1.4" | 56 | #define DRV_VERSION "v.1.1.4" |
57 | #define DRV_RELDATE "Oct 6 2018" | 57 | #define DRV_RELDATE "Oct 6 2018" |
58 | 58 | ||
59 | static char version[] = | 59 | static const char version[] = |
60 | DRV_NAME ": " DRV_VERSION " " DRV_RELDATE " Maciej W. Rozycki\n"; | 60 | DRV_NAME ": " DRV_VERSION " " DRV_RELDATE " Maciej W. Rozycki\n"; |
61 | 61 | ||
62 | MODULE_AUTHOR("Maciej W. Rozycki <macro@linux-mips.org>"); | 62 | MODULE_AUTHOR("Maciej W. Rozycki <macro@linux-mips.org>"); |
@@ -784,7 +784,7 @@ err_rx: | |||
784 | static void fza_tx_smt(struct net_device *dev) | 784 | static void fza_tx_smt(struct net_device *dev) |
785 | { | 785 | { |
786 | struct fza_private *fp = netdev_priv(dev); | 786 | struct fza_private *fp = netdev_priv(dev); |
787 | struct fza_buffer_tx __iomem *smt_tx_ptr, *skb_data_ptr; | 787 | struct fza_buffer_tx __iomem *smt_tx_ptr; |
788 | int i, len; | 788 | int i, len; |
789 | u32 own; | 789 | u32 own; |
790 | 790 | ||
@@ -799,6 +799,7 @@ static void fza_tx_smt(struct net_device *dev) | |||
799 | 799 | ||
800 | if (!netif_queue_stopped(dev)) { | 800 | if (!netif_queue_stopped(dev)) { |
801 | if (dev_nit_active(dev)) { | 801 | if (dev_nit_active(dev)) { |
802 | struct fza_buffer_tx *skb_data_ptr; | ||
802 | struct sk_buff *skb; | 803 | struct sk_buff *skb; |
803 | 804 | ||
804 | /* Length must be a multiple of 4 as only word | 805 | /* Length must be a multiple of 4 as only word |