* [PATCH] staging: octeon: remove BUG() call
@ 2026-03-10 1:45 Mark Adamenko
0 siblings, 0 replies; only message in thread
From: Mark Adamenko @ 2026-03-10 1:45 UTC (permalink / raw)
To: linux-staging; +Cc: gregkh, linux-kernel, Mark Adamenko
An unreachable default case calls BUG(). Remove the entire default case,
as the three possible cases are already addressed.
Signed-off-by: Mark Adamenko <marusik.adamenko@gmail.com>
---
drivers/staging/octeon/ethernet-tx.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/staging/octeon/ethernet-tx.c b/drivers/staging/octeon/ethernet-tx.c
index f5bbedac6a65..14d10659bce7 100644
--- a/drivers/staging/octeon/ethernet-tx.c
+++ b/drivers/staging/octeon/ethernet-tx.c
@@ -449,8 +449,6 @@ netdev_tx_t cvm_oct_xmit(struct sk_buff *skb, struct net_device *dev)
case QUEUE_CORE:
__skb_queue_tail(&priv->tx_free_list[qos], skb);
break;
- default:
- BUG();
}
while (skb_to_free > 0) {
--
2.53.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-03-10 1:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-10 1:45 [PATCH] staging: octeon: remove BUG() call Mark Adamenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®