Skip to contentSkip to conversation

staging: octeon: remove BUG() call

PATCH New Mark Adamenko 1 participant 1 message Mar 10 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: octeon: remove BUG() call

An unreachable default case calls BUG(). Remove the entire default case, as the three possible cases are already addressed.

---
 drivers/staging/octeon/ethernet-tx.c | 2 --
 1 file changed, 2 deletions(-)
drivers/staging/octeon/ethernet-tx.c +0 -2
index f5bbedac6a65..14d10659bce7 100644
@@ -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) {
Signature · 1 line
2.53.0