diff options
-rw-r--r-- | drivers/staging/pi433/pi433_if.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c index 196facc700f3..3404cb9722c9 100644 --- a/drivers/staging/pi433/pi433_if.c +++ b/drivers/staging/pi433/pi433_if.c @@ -928,8 +928,7 @@ static int setup_GPIOs(struct pi433_device *device) { retval = PTR_ERR(device->gpiod[i]); /* release already allocated gpios */ - for (i--; i>=0; i--) - { + for (i--; i >= 0; i--) { free_irq(device->irq_num[i], device); gpiod_put(device->gpiod[i]); } @@ -968,7 +967,7 @@ static void free_GPIOs(struct pi433_device *device) { int i; - for (i=0; i<NUM_DIO; i++) + for (i = 0; i < NUM_DIO; i++) { /* check if gpiod is valid */ if ( IS_ERR(device->gpiod[i]) ) |