ALSA: fm801: put curly braces around empty if-body
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 18 Dec 2015 19:14:12 +0000 (21:14 +0200)
committerTakashi Iwai <tiwai@suse.de>
Sun, 20 Dec 2015 21:33:08 +0000 (22:33 +0100)
The compiler complains on unused condition as follows

sound/pci/fm801.c: In function ‘snd_fm801_interrupt’:
sound/pci/fm801.c:585:3: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]

Put the curly braces around empty body as suggested.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/fm801.c

index c2afb41907bd4e45e0ebb00d27d9b04e97696639..c24cb04895b8d6e54ed0b83001650bf841f14327 100644 (file)
@@ -592,8 +592,9 @@ static irqreturn_t snd_fm801_interrupt(int irq, void *dev_id)
        }
        if (chip->rmidi && (status & FM801_IRQ_MPU))
                snd_mpu401_uart_interrupt(irq, chip->rmidi->private_data);
-       if (status & FM801_IRQ_VOLUME)
-               ;/* TODO */
+       if (status & FM801_IRQ_VOLUME) {
+               /* TODO */
+       }
 
        return IRQ_HANDLED;
 }