WARNING: 'happend' may be misspelled - perhaps 'happened'? #8: free it when error happend in the sub-function. CHECK: Alignment should match open parenthesis #33: FILE: sound/soc/soc-dapm.c:942: + w->kcontrols = kcalloc(w->num_kcontrols, + sizeof(struct snd_kcontrol *), CHECK: Alignment should match open parenthesis #79: FILE: sound/soc/soc-dapm.c:1011: + w->kcontrols = kcalloc(w->num_kcontrols, + sizeof(struct snd_kcontrol *), WARNING: braces {} are not necessary for single statement blocks #81: FILE: sound/soc/soc-dapm.c:1013: + if (!w->kcontrols) { + return -ENOMEM; + } CHECK: Alignment should match open parenthesis #118: FILE: sound/soc/soc-dapm.c:1047: + w->kcontrols = kcalloc(w->num_kcontrols, + sizeof(struct snd_kcontrol *), WARNING: braces {} are not necessary for single statement blocks #120: FILE: sound/soc/soc-dapm.c:1049: + if (!w->kcontrols) { + return -ENOMEM; + } CHECK: Alignment should match open parenthesis #148: FILE: sound/soc/soc-dapm.c:1083: + w->kcontrols = kcalloc(w->num_kcontrols, + sizeof(struct snd_kcontrol *), total: 0 errors, 3 warnings, 4 checks, 201 lines checked NOTE: For some of the reported defects, checkpatch may be able to mechanically convert to the typical style using --fix or --fix-inplace. ./linux-sof-driver/0001-ASoC-topology-bug-fix-oops-cause-by-pointer-derefere.patch has style problems, please review. NOTE: If any of the errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS.