OSDN Git Service

dmaengine: nbpfaxi: Mark expected switch fall-through
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Mon, 2 Jul 2018 18:06:05 +0000 (13:06 -0500)
committerVinod Koul <vkoul@kernel.org>
Mon, 9 Jul 2018 11:31:35 +0000 (17:01 +0530)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/nbpfaxi.c

index 2f9974d..8c7b2e8 100644 (file)
@@ -479,6 +479,7 @@ static size_t nbpf_xfer_size(struct nbpf_device *nbpf,
 
        default:
                pr_warn("%s(): invalid bus width %u\n", __func__, width);
+               /* fall through */
        case DMA_SLAVE_BUSWIDTH_1_BYTE:
                size = burst;
        }