sound/soc/sof/sof-audio.c:375 sof_machine_check() warn: inconsistent indenting
From: kernel test robot
Date: Sun Oct 18 2020 - 21:42:01 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 7cf726a59435301046250c42131554d9ccc566b8
commit: 285880a23d105e5d34b311b0c44061dffb07e405 ASoC: SOF: Make creation of machine device from SOF core optional
date: 10 months ago
config: i386-randconfig-m021-20201019 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>
smatch warnings:
sound/soc/sof/sof-audio.c:375 sof_machine_check() warn: inconsistent indenting
sound/soc/sof/sof-audio.c:380 sof_machine_check() warn: ignoring unreachable code.
vim +375 sound/soc/sof/sof-audio.c
362
363 /*
364 * SOF Driver enumeration.
365 */
366 int sof_machine_check(struct snd_sof_dev *sdev)
367 {
368 struct snd_sof_pdata *sof_pdata = sdev->pdata;
369 const struct sof_dev_desc *desc = sof_pdata->desc;
370 struct snd_soc_acpi_mach *mach;
371 int ret;
372
373 /* force nocodec mode */
374 #if IS_ENABLED(CONFIG_SND_SOC_SOF_FORCE_NOCODEC_MODE)
> 375 dev_warn(sdev->dev, "Force to use nocodec mode\n");
376 goto nocodec;
377 #endif
378
379 /* find machine */
> 380 snd_sof_machine_select(sdev);
381 if (sof_pdata->machine) {
382 snd_sof_set_mach_params(sof_pdata->machine, sdev->dev);
383 return 0;
384 }
385
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip