Skip to content

Commit 884b031

Browse files
GustavoARSilvaaxboe
authored andcommitted
lightnvm: pblk: mark expected switch fall-through
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: Matias Bjørling <mb@lightnvm.io> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 4e495a4 commit 884b031

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/lightnvm/pblk-core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ void pblk_free_rqd(struct pblk *pblk, struct nvm_rq *rqd, int type)
264264
switch (type) {
265265
case PBLK_WRITE:
266266
kfree(((struct pblk_c_ctx *)nvm_rq_to_pdu(rqd))->lun_bitmap);
267+
/* fall through */
267268
case PBLK_WRITE_INT:
268269
pool = &pblk->w_rq_pool;
269270
break;

0 commit comments

Comments
 (0)