Skip to content

Commit b1870a6

Browse files
committed
Merge branch 'FDDI-defza-Fix-a-bunch-of-small-issues'
Maciej W. Rozycki says: ==================== FDDI: defza: Fix a bunch of small issues Here is a bunch of small fixes addressing issues that I missed in my final round of testing. None of these affect run-time behaviour. One was actually found by the kbuild bot, which turned out to be more pedantic than my compiler. See individual change descriptions for details. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
2 parents 69e3629 + 8f5365e commit b1870a6

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

drivers/net/fddi/defza.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-License-Identifier: GPL-2.0
1+
// SPDX-License-Identifier: GPL-2.0+
22
/* FDDI network adapter driver for DEC FDDIcontroller 700/700-C devices.
33
*
44
* Copyright (c) 2018 Maciej W. Rozycki
@@ -56,7 +56,7 @@
5656
#define DRV_VERSION "v.1.1.4"
5757
#define DRV_RELDATE "Oct 6 2018"
5858

59-
static char version[] =
59+
static const char version[] =
6060
DRV_NAME ": " DRV_VERSION " " DRV_RELDATE " Maciej W. Rozycki\n";
6161

6262
MODULE_AUTHOR("Maciej W. Rozycki <macro@linux-mips.org>");
@@ -784,7 +784,7 @@ static void fza_rx(struct net_device *dev)
784784
static void fza_tx_smt(struct net_device *dev)
785785
{
786786
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;
788788
int i, len;
789789
u32 own;
790790

@@ -799,6 +799,7 @@ static void fza_tx_smt(struct net_device *dev)
799799

800800
if (!netif_queue_stopped(dev)) {
801801
if (dev_nit_active(dev)) {
802+
struct fza_buffer_tx *skb_data_ptr;
802803
struct sk_buff *skb;
803804

804805
/* Length must be a multiple of 4 as only word

drivers/net/fddi/defza.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* SPDX-License-Identifier: GPL-2.0 */
1+
/* SPDX-License-Identifier: GPL-2.0+ */
22
/* FDDI network adapter driver for DEC FDDIcontroller 700/700-C devices.
33
*
44
* Copyright (c) 2018 Maciej W. Rozycki
@@ -235,6 +235,7 @@ struct fza_ring_cmd {
235235
#define FZA_RING_CMD 0x200400 /* command ring address */
236236
#define FZA_RING_CMD_SIZE 0x40 /* command descriptor ring
237237
* size
238+
*/
238239
/* Command constants. */
239240
#define FZA_RING_CMD_MASK 0x7fffffff
240241
#define FZA_RING_CMD_NOP 0x00000000 /* nop */

0 commit comments

Comments
 (0)