diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2020-09-02 16:21:17 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2020-09-03 09:24:49 +0200 |
commit | b1c14124507b86ab554be75ed5fcb2e50bb33c6c (patch) | |
tree | be289b4653f1c7aa9224f04146cac116c26bd8fc /sound/core | |
parent | 931522b90813a6f1c9c673ec9a0eb985b39554dc (diff) | |
download | linux-b1c14124507b86ab554be75ed5fcb2e50bb33c6c.tar.gz linux-b1c14124507b86ab554be75ed5fcb2e50bb33c6c.tar.bz2 linux-b1c14124507b86ab554be75ed5fcb2e50bb33c6c.zip |
ALSA: core: memalloc: fix fallthrough position
Fix cppcheck, the fallthrough only makes sense within the conditional
block
sound/core/memalloc.c:161:3: style:inconclusive: Statements following
return, break, continue, goto or throw will never be
executed. [unreachableCode]
fallthrough;
^
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200902212133.30964-3-pierre-louis.bossart@linux.intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core')
-rw-r--r-- | sound/core/memalloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/memalloc.c b/sound/core/memalloc.c index ad74ea9cbff5..0aeeb6244ff6 100644 --- a/sound/core/memalloc.c +++ b/sound/core/memalloc.c @@ -157,8 +157,8 @@ int snd_dma_alloc_pages(int type, struct device *device, size_t size, * so if we fail to malloc, try to fetch memory traditionally. */ dmab->dev.type = SNDRV_DMA_TYPE_DEV; -#endif /* CONFIG_GENERIC_ALLOCATOR */ fallthrough; +#endif /* CONFIG_GENERIC_ALLOCATOR */ case SNDRV_DMA_TYPE_DEV: case SNDRV_DMA_TYPE_DEV_UC: snd_malloc_dev_pages(dmab, size); |