diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-07-03 15:23:05 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-08-13 14:48:54 -0400 |
commit | a2eed33dcdb7663170b01f05dd8d0a3323ffe4b3 (patch) | |
tree | b85ce0fc9f511d5c2098b831cc30fd4b2a7f73ec /drivers/ide/ide-taskfile.c | |
parent | 777a82f87a9af591c3b02e9983d6cd3109022ea9 (diff) |
ide: mark expected switch fall-throughs
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: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ide/ide-taskfile.c')
-rw-r--r-- | drivers/ide/ide-taskfile.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ide/ide-taskfile.c b/drivers/ide/ide-taskfile.c index 89b29028d315..c21d5c50ae3a 100644 --- a/drivers/ide/ide-taskfile.c +++ b/drivers/ide/ide-taskfile.c | |||
@@ -128,7 +128,7 @@ ide_startstop_t do_rw_taskfile(ide_drive_t *drive, struct ide_cmd *orig_cmd) | |||
128 | return pre_task_out_intr(drive, cmd); | 128 | return pre_task_out_intr(drive, cmd); |
129 | } | 129 | } |
130 | handler = task_pio_intr; | 130 | handler = task_pio_intr; |
131 | /* fall-through */ | 131 | /* fall through */ |
132 | case ATA_PROT_NODATA: | 132 | case ATA_PROT_NODATA: |
133 | if (handler == NULL) | 133 | if (handler == NULL) |
134 | handler = task_no_data_intr; | 134 | handler = task_no_data_intr; |
@@ -140,6 +140,7 @@ ide_startstop_t do_rw_taskfile(ide_drive_t *drive, struct ide_cmd *orig_cmd) | |||
140 | hwif->expiry = dma_ops->dma_timer_expiry; | 140 | hwif->expiry = dma_ops->dma_timer_expiry; |
141 | ide_execute_command(drive, cmd, ide_dma_intr, 2 * WAIT_CMD); | 141 | ide_execute_command(drive, cmd, ide_dma_intr, 2 * WAIT_CMD); |
142 | dma_ops->dma_start(drive); | 142 | dma_ops->dma_start(drive); |
143 | /* fall through */ | ||
143 | default: | 144 | default: |
144 | return ide_started; | 145 | return ide_started; |
145 | } | 146 | } |