23 May
2013
23 May
'13
12:07 a.m.
On Wed, May 22, 2013 at 08:16:36PM +0200, Lars-Peter Clausen wrote:
On 05/22/2013 07:57 PM, Mark Brown wrote:
- if (slots == 0) {
return regmap_update_bits(ssm2518->regmap,
SSM2518_REG_SAI_CTRL1, SSM2518_SAI_CTRL1_SAI_MASK,
SSM2518_SAI_CTRL1_SAI_I2S);
- }
You've got quite a few single statement if () blocks with { } which shouldn't be there.
I prefer to only do this for single single-line statements.
That's not the kernel coding style and I have to say these examples were all jumping out at me as weird, I was looking for an else clause or something.