This patch fixed codestyle issues of kind:

ERROR: that open brace { should be on the previous line
 +       if (device->rx_active) +       {

ERROR: that open brace { should be on the previous line
+       else
+       {

ERROR: else should follow close brace '}'
+       }
+       else

Signed-off-by: Oliver Graute <oliver.gra...@gmail.com>
---
 drivers/staging/pi433/pi433_if.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c
index 70d2c39..3e79ebf 100644
--- a/drivers/staging/pi433/pi433_if.c
+++ b/drivers/staging/pi433/pi433_if.c
@@ -712,13 +712,10 @@ static irqreturn_t DIO1_irq_handler(int irq, void *dev_id)
 
        /* just one read request at a time */
        mutex_lock(&device->rx_lock);
-       if (device->rx_active)
-       {
+       if (device->rx_active) {
                mutex_unlock(&device->rx_lock);
                return -EAGAIN;
-       }
-       else
-       {
+       } else {
                device->rx_active = true;
                mutex_unlock(&device->rx_lock);
        }
-- 
1.9.1

_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to