]> www.infradead.org Git - users/hch/dma-mapping.git/commitdiff
net: plip: fix break; causing plip to never transmit
authorJakub Boehm <boehm.jakub@gmail.com>
Tue, 15 Oct 2024 15:16:04 +0000 (17:16 +0200)
committerAndrew Lunn <andrew@lunn.ch>
Sat, 19 Oct 2024 21:06:55 +0000 (16:06 -0500)
Since commit
  71ae2cb30531 ("net: plip: Fix fall-through warnings for Clang")

plip was not able to send any packets, this patch replaces one
unintended break; with fallthrough; which was originally missed by
commit 9525d69a3667 ("net: plip: mark expected switch fall-throughs").

I have verified with a real hardware PLIP connection that everything
works once again after applying this patch.

Fixes: 71ae2cb30531 ("net: plip: Fix fall-through warnings for Clang")
Signed-off-by: Jakub Boehm <boehm.jakub@gmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Message-ID: <20241015-net-plip-tx-fix-v1-1-32d8be1c7e0b@gmail.com>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
drivers/net/plip/plip.c

index e39bfaefe8c50ba72238d04f08deaa46ca650c70..d81163bc910a3bcaa770a10c0e2d7d9b334a381b 100644 (file)
@@ -815,7 +815,7 @@ plip_send_packet(struct net_device *dev, struct net_local *nl,
                                return HS_TIMEOUT;
                        }
                }
-               break;
+               fallthrough;
 
        case PLIP_PK_LENGTH_LSB:
                if (plip_send(nibble_timeout, dev,