Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 212db303 authored by Cristina Opriceana's avatar Cristina Opriceana Committed by Greg Kroah-Hartman
Browse files

Staging: iio: Use braces on all arms of if statement



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: default avatarCristina Opriceana <cristina.opriceana@gmail.com>
Reviewed-by: default avatarDaniel Baluta <daniel.baluta@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 01f62379
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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 {