staging:iio:industrialio-trigger.c Trivial code style brackets fix
authorJonathan Cameron <jic23@cam.ac.uk>
Wed, 26 Oct 2011 16:27:39 +0000 (17:27 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 27 Nov 2011 00:30:30 +0000 (16:30 -0800)
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/industrialio-trigger.c

index ca4124aa65eeac84a7422c6cc61f26e77390b421..9412013e74592c01335f4fdbeee6919e912517a7 100644 (file)
@@ -159,13 +159,12 @@ EXPORT_SYMBOL(iio_trigger_generic_data_rdy_poll);
 void iio_trigger_poll_chained(struct iio_trigger *trig, s64 time)
 {
        int i;
-       if (!trig->use_count) {
+       if (!trig->use_count)
                for (i = 0; i < CONFIG_IIO_CONSUMERS_PER_TRIGGER; i++)
                        if (trig->subirqs[i].enabled) {
                                trig->use_count++;
                                handle_nested_irq(trig->subirq_base + i);
                        }
-       }
 }
 EXPORT_SYMBOL(iio_trigger_poll_chained);
 
@@ -173,10 +172,9 @@ void iio_trigger_notify_done(struct iio_trigger *trig)
 {
        trig->use_count--;
        if (trig->use_count == 0 && trig->ops && trig->ops->try_reenable)
-               if (trig->ops->try_reenable(trig)) {
+               if (trig->ops->try_reenable(trig))
                        /* Missed and interrupt so launch new poll now */
                        iio_trigger_poll(trig, 0);
-               }
 }
 EXPORT_SYMBOL(iio_trigger_notify_done);