From: Cristina Opriceana Date: Mon, 13 Jul 2015 13:17:47 +0000 (+0300) Subject: tools: iio: Remove unnecessary braces X-Git-Tag: v4.3-rc1~158^2~139^2~68 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=37d38e2bcce055c3988977429dc4336c866df73d;p=karo-tx-linux.git tools: iio: Remove unnecessary braces Single statement blocks don’t need braces. Found with checkpatch.pl. Signed-off-by: Cristina Opriceana Acked-by: Hartmut Knaack Signed-off-by: Jonathan Cameron --- diff --git a/tools/iio/iio_event_monitor.c b/tools/iio/iio_event_monitor.c index 703f4cb0e8e9..9ee195949a4a 100644 --- a/tools/iio/iio_event_monitor.c +++ b/tools/iio/iio_event_monitor.c @@ -262,9 +262,8 @@ int main(int argc, char **argv) printf("Found IIO device with name %s with device number %d\n", device_name, dev_num); ret = asprintf(&chrdev_name, "/dev/iio:device%d", dev_num); - if (ret < 0) { + if (ret < 0) return -ENOMEM; - } } else { /* * If we can't find an IIO device by name assume device_name is