ASoC: Intel: skylake - match braces for if-else
Subsystems (3)
cover ASoC: Intel: skylake - match braces for if-else
Coding style mandates that if-else should match braces even if one of them is a single line statement. Fix it in two places missed earlier
Mark, you can also fold these two patches with SKL driver series (1st and 2nd patch can fold in 1st and 2nd patch respectively) or apply independetly, either way okay
Vinod Koul (2):
ASoC: Intel: skl-pcm.c match braces for if-else
ASoC: Intel: skl.c match braces for if-else
sound/soc/intel/skylake/skl-pcm.c | 3 ++- sound/soc/intel/skylake/skl.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-)
Signature · 1 line
1.9.1
PATCH 1/2 ASoC: Intel: skl-pcm.c match braces for if-else
Coding style madates that if-else should match braces even if one of them is a single line statement
--- sound/soc/intel/skylake/skl-pcm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
sound/soc/intel/skylake/skl-pcm.c +2 -1
@@ -845,8 +845,9 @@ static int skl_get_time_info(struct snd_pcm_substream *substream, audio_tstamp_report->accuracy_report =1 ;/* rest of struct is valid */ audio_tstamp_report->accuracy =42 ;/* 24MHzWallClk == 42ns resolution */ - }else + }else { audio_tstamp_report->actual_type =SNDRV_PCM_AUDIO_TSTAMP_TYPE_DEFAULT ; + }return 0 ; }
Signature · 1 line
1.9.1
PATCH 2/2 ASoC: Intel: skl.c match braces for if-else
In reply to Vinod KoulCoding style madates that if-else should match braces even if one of them is a single line statement
--- sound/soc/intel/skylake/skl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/intel/skylake/skl.c +2 -2
@@ -394,9 +394,9 @@ static int skl_first_init(struct hdac_ext_bus *ebus)dev_dbg (bus->dev,"chipset global capabilities = 0x%x\n" , gcap);/* allow 64bit DMA address if supported by H/W */ -if (!dma_set_mask (bus->dev,DMA_BIT_MASK (64 ))) +if (!dma_set_mask (bus->dev,DMA_BIT_MASK (64 ))) {dma_set_coherent_mask (bus->dev,DMA_BIT_MASK (64 )); -else { + }else {dma_set_mask (bus->dev,DMA_BIT_MASK (32 ));dma_set_coherent_mask (bus->dev,DMA_BIT_MASK (32 )); }
Signature · 1 line
1.9.1
Mark Brown
maintainerQuoted 6 lines · Vinod Koul
Coding style mandates that if-else should match braces even if one of them is a single line statement. Fix it in two places missed earlier
Mark, you can also fold these two patches with SKL driver series (1st and 2nd patch can fold in 1st and 2nd patch respectively) or apply independetly, either way okay
I really don't know what that series is any more, sorry. I've got two pending serieses both identified as Sky Lake and sent after this one.
Quoted 10 lines · Mark Brown
Quoted 6 lines · Vinod Koul
Coding style mandates that if-else should match braces even if one of them is a single line statement. Fix it in two places missed earlier
Mark, you can also fold these two patches with SKL driver series (1st and 2nd patch can fold in 1st and 2nd patch respectively) or apply independetly, either way okay
I really don't know what that series is any more, sorry. I've got two pending serieses both identified as Sky Lake and sent after this one.
Hi Mark,
For the last series you said you were okay but had noticed some style inconsistencies, so I fixed those with this. The updated patchset (rebased) has these folded in, so this can be ignored.
Signature · 1 line
~Vinod