Skip to contentSkip to conversation

ALSA: isa: Fix inconsistent indenting

PATCH In review Yang Li 2 participants 2 messages Apr 16, 2021 Sound

lore
Share & tools
lore

Yang Li

author
#0 lore raw

PATCH 1/1 ALSA: isa: Fix inconsistent indenting

Kernel test robot throws below warning ->

smatch warnings:
sound/isa/opti9xx/opti92x-ad1848.c:191 snd_opti9xx_init() warn:
inconsistent indenting sound/isa/opti9xx/opti92x-ad1848.c:488 snd_opti9xx_init() warn:
inconsistent indenting

---
 sound/isa/opti9xx/opti92x-ad1848.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
sound/isa/opti9xx/opti92x-ad1848.c +2 -2
index 08e61d9..234f023 100644
@@ -188,7 +188,7 @@ static int snd_opti9xx_init(struct snd_opti9xx *chip,
 		chip->mc_base_size = opti9xx_mc_size[hardware];
 	}
 #else
-		chip->mc_base_size = opti9xx_mc_size[hardware];
+	chip->mc_base_size = opti9xx_mc_size[hardware];
 #endif
 
 	switch (hardware) {
@@ -485,7 +485,7 @@ static int snd_opti9xx_configure(struct snd_opti9xx *chip,
 #endif	/* CS4231 || OPTi93X */
 
 #ifndef OPTi93X
-	 outb(irq_bits << 3 | dma_bits, chip->wss_base);
+	outb(irq_bits << 3 | dma_bits, chip->wss_base);
 #else /* OPTi93X */
 	snd_opti9xx_write(chip, OPTi9XX_MC_REG(3), (irq_bits << 3 | dma_bits));
 #endif /* OPTi93X */
Signature · 1 line
1.8.3.1
#1 lore raw
Quoted 20 lines · Yang Li

Kernel test robot throws below warning ->

smatch warnings:
sound/isa/opti9xx/opti92x-ad1848.c:191 snd_opti9xx_init() warn:
inconsistent indenting sound/isa/opti9xx/opti92x-ad1848.c:488 snd_opti9xx_init() warn:
inconsistent indenting

---
 sound/isa/opti9xx/opti92x-ad1848.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
sound/isa/opti9xx/opti92x-ad1848.c +0 -0
index 08e61d9..234f023 100644

sound/isa/opti9xx/opti92x-ad1848.c static int snd_opti9xx_init(struct snd_opti9xx *chip, · line 192

Quoted 6 lines
sound/isa/opti9xx/opti92x-ad1848.c +1 -1
@@ -188,7 +188,7 @@ static int snd_opti9xx_init(struct snd_opti9xx *chip,
 		chip->mc_base_size = opti9xx_mc_size[hardware];
 	}
 #else
-		chip->mc_base_size = opti9xx_mc_size[hardware];
+	chip->mc_base_size = opti9xx_mc_size[hardware];
 #endif

No, it's not correct.

The ifdef is a bit tricky here but the line you changed belongs to the else section.

thanks,

Takashi