Staging: iio: Use braces on all arms of if statement
authorCristina Opriceana <cristina.opriceana@gmail.com>
Sat, 14 Mar 2015 18:54:04 +0000 (20:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Mar 2015 15:14:05 +0000 (16:14 +0100)
Add braces to improve consistency when using if statements.
Found by checkpatch.pl:
"CHECK: braces {} should be used on all arms of this statement".

Signed-off-by: Cristina Opriceana <cristina.opriceana@gmail.com>
Reviewed-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/frequency/ad9834.c

index b57bf6f..d02bb44 100644 (file)
@@ -111,9 +111,9 @@ static ssize_t ad9834_write(struct device *dev,
                break;
        case AD9834_FSEL:
        case AD9834_PSEL:
-               if (val == 0)
+               if (val == 0) {
                        st->control &= ~(this_attr->address | AD9834_PIN_SW);
-               else if (val == 1) {
+               else if (val == 1) {
                        st->control |= this_attr->address;
                        st->control &= ~AD9834_PIN_SW;
                } else {