diff options
| author | Mark Adamenko <marusik.adamenko@gmail.com> | 2026-03-10 04:45:14 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-03-18 18:48:40 +0300 |
| commit | e66cd5a8f2b48eb513867dcf0c3d25d8a405ec57 (patch) | |
| tree | 2f6ef27f0bd177c3b5da7e6b3aae70ede0ff0370 | |
| parent | 7f9e3268fbc89eb82463394791d1b617f720a8d0 (diff) | |
| download | linux-e66cd5a8f2b48eb513867dcf0c3d25d8a405ec57.tar.xz | |
staging: octeon: remove BUG() call
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>
Link: https://patch.msgid.link/20260310014514.40293-1-marusik.adamenko@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -rw-r--r-- | drivers/staging/octeon/ethernet-tx.c | 2 |
1 files changed, 0 insertions, 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 @@ skip_xmit: case QUEUE_CORE: __skb_queue_tail(&priv->tx_free_list[qos], skb); break; - default: - BUG(); } while (skb_to_free > 0) { |
