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

Commit 37d38e2b authored by Cristina Opriceana's avatar Cristina Opriceana Committed by Jonathan Cameron
Browse files

tools: iio: Remove unnecessary braces



Single statement blocks don’t need braces.
Found with checkpatch.pl.

Signed-off-by: default avatarCristina Opriceana <cristina.opriceana@gmail.com>
Acked-by: default avatarHartmut Knaack <knaack.h@gmx.de>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent ff1ac639
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -262,9 +262,8 @@ int main(int argc, char **argv)
		printf("Found IIO device with name %s with device number %d\n",
		printf("Found IIO device with name %s with device number %d\n",
		       device_name, dev_num);
		       device_name, dev_num);
		ret = asprintf(&chrdev_name, "/dev/iio:device%d", dev_num);
		ret = asprintf(&chrdev_name, "/dev/iio:device%d", dev_num);
		if (ret < 0) {
		if (ret < 0)
			return -ENOMEM;
			return -ENOMEM;
		}
	} else {
	} else {
		/*
		/*
		 * If we can't find an IIO device by name assume device_name is
		 * If we can't find an IIO device by name assume device_name is