]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
net: arcnet: fix typos in comments
authorEthan Nelson-Moore <enelsonmoore@gmail.com>
Thu, 21 May 2026 00:16:14 +0000 (17:16 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sat, 23 May 2026 00:20:56 +0000 (17:20 -0700)
The ARCnet code contains quite a few typos in comments. Fix them.
Initially noticed by inspection, then augmented using codespell.

Signed-off-by: Ethan Nelson-Moore <enelsonmoore@gmail.com>
Link: https://patch.msgid.link/20260521001631.45434-3-enelsonmoore@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/arcnet/arc-rimi.c
drivers/net/arcnet/arcdevice.h
drivers/net/arcnet/rfc1201.c

index 53d10a04d1bd0a765e34dd6e56217a59d5485cc9..fb3d3565aa9a0a26043288727244325487c9e1a9 100644 (file)
@@ -185,7 +185,7 @@ static int __init arcrimi_found(struct net_device *dev)
        lp->hw.copy_to_card = arcrimi_copy_to_card;
        lp->hw.copy_from_card = arcrimi_copy_from_card;
 
-       /* re-reserve the memory region - arcrimi_probe() alloced this reqion
+       /* re-reserve the memory region - arcrimi_probe() allocated this reqion
         * but didn't know the real size.  Free that region and then re-get
         * with the correct size.  There is a VERY slim chance this could
         * fail.
index bee60b377d7c4f0d5b2a8c57ad4962d53f2b1404..f1947342d67fe0da86790183a4dacf21772c46ff 100644 (file)
@@ -137,7 +137,7 @@ do {                                                                        \
 #define TXACKflag       0x02   /* transmitted msg. ackd */
 #define RECONflag       0x04   /* network reconfigured */
 #define TESTflag        0x08   /* test flag */
-#define EXCNAKflag      0x08    /* excesive nak flag */
+#define EXCNAKflag      0x08    /* excessive nak flag */
 #define RESETflag       0x10   /* power-on-reset */
 #define RES1flag        0x20   /* reserved - usually set by jumper */
 #define RES2flag        0x40   /* reserved - usually set by jumper */
@@ -166,7 +166,7 @@ do {                                                                        \
 #define RESETclear      0x08   /* power-on-reset */
 #define CONFIGclear     0x10   /* system reconfigured */
 
-#define EXCNAKclear     0x0E    /* Clear and acknowledge the excive nak bit */
+#define EXCNAKclear     0x0E    /* Clear and acknowledge the excessive nak bit */
 
 /* flags for "load test flags" command */
 #define TESTload        0x08   /* test flag (diagnostic) */
@@ -194,7 +194,7 @@ do {                                                                        \
 struct ArcProto {
        char suffix;            /* a for RFC1201, e for ether-encap, etc. */
        int mtu;                /* largest possible packet */
-       int is_ip;              /* This is a ip plugin - not a raw thing */
+       int is_ip;              /* This is an ip plugin - not a raw thing */
 
        void (*rx)(struct net_device *dev, int bufnum,
                   struct archdr *pkthdr, int length);
@@ -257,7 +257,7 @@ struct arcnet_local {
        char *card_name;        /* card ident string */
        int card_flags;         /* special card features */
 
-       /* On preemtive and SMB a lock is needed */
+       /* On preemptive and SMP a lock is needed */
        spinlock_t lock;
 
        struct led_trigger *tx_led_trig;
@@ -299,7 +299,7 @@ struct arcnet_local {
        int num_recons;         /* number of RECONs between first and last. */
        int network_down;       /* do we think the network is down? */
 
-       int excnak_pending;    /* We just got an excesive nak interrupt */
+       int excnak_pending;    /* We just got an excessive nak interrupt */
 
        /* RESET flag handling */
        int reset_in_progress;
index 0edf35d971c56ef15a11814167a2100927975f61..f2ec58d06fc35453b2284b31f5b805fde79e5920 100644 (file)
@@ -235,7 +235,7 @@ static void rx(struct net_device *dev, int bufnum,
                skb->protocol = type_trans(skb, dev);
                netif_rx(skb);
        } else {                /* split packet */
-               /* NOTE: MSDOS ARP packet correction should only need to
+               /* NOTE: MS-DOS ARP packet correction should only need to
                 * apply to unsplit packets, since ARP packets are so short.
                 *
                 * My interpretation of the RFC1201 document is that if a