]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
staging: octeon: remove BUG() call
authorMark Adamenko <marusik.adamenko@gmail.com>
Tue, 10 Mar 2026 01:45:14 +0000 (18:45 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2026 15:48:40 +0000 (16:48 +0100)
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>
drivers/staging/octeon/ethernet-tx.c

index f5bbedac6a6538193747a398949de4bd3881577b..14d10659bce7166da1a997529f51ec2e5818e3c0 100644 (file)
@@ -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) {