mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
931522b908
commit
b1c1412450
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
* so if we fail to malloc, try to fetch memory traditionally.
|
||||||
*/
|
*/
|
||||||
dmab->dev.type = SNDRV_DMA_TYPE_DEV;
|
dmab->dev.type = SNDRV_DMA_TYPE_DEV;
|
||||||
#endif /* CONFIG_GENERIC_ALLOCATOR */
|
|
||||||
fallthrough;
|
fallthrough;
|
||||||
|
#endif /* CONFIG_GENERIC_ALLOCATOR */
|
||||||
case SNDRV_DMA_TYPE_DEV:
|
case SNDRV_DMA_TYPE_DEV:
|
||||||
case SNDRV_DMA_TYPE_DEV_UC:
|
case SNDRV_DMA_TYPE_DEV_UC:
|
||||||
snd_malloc_dev_pages(dmab, size);
|
snd_malloc_dev_pages(dmab, size);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue