From f211fcd75fec96ec9850885622ed028c6f7ebdf4 Mon Sep 17 00:00:00 2001 From: Scott Feldman Date: Wed, 1 Jul 2015 03:33:09 -0700 Subject: rocker: fix missing break statements Signed-off-by: Scott Feldman Reported-by: Paolo Bonzini Message-id: 1435746792-41278-3-git-send-email-sfeldma@gmail.com Signed-off-by: Stefan Hajnoczi --- hw/net/rocker/rocker.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'hw') diff --git a/hw/net/rocker/rocker.c b/hw/net/rocker/rocker.c index 7e060153ab..6e3d35ae84 100644 --- a/hw/net/rocker/rocker.c +++ b/hw/net/rocker/rocker.c @@ -193,11 +193,13 @@ static int tx_consume(Rocker *r, DescInfo *info) if (!tlvs[ROCKER_TLV_TX_L3_CSUM_OFF]) { return -ROCKER_EINVAL; } + break; case ROCKER_TX_OFFLOAD_TSO: if (!tlvs[ROCKER_TLV_TX_TSO_MSS] || !tlvs[ROCKER_TLV_TX_TSO_HDR_LEN]) { return -ROCKER_EINVAL; } + break; } if (tlvs[ROCKER_TLV_TX_L3_CSUM_OFF]) { -- cgit v1.2.3