summaryrefslogtreecommitdiff
path: root/drivers/staging
diff options
context:
space:
mode:
authorOliver Graute <oliver.graute@gmail.com>2017-11-26 21:07:10 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-11-28 14:11:49 +0100
commitc976752e39988b0b8d7d4d7f06ed0f67582b4d46 (patch)
tree97bd243313f9980bfda25af21384d55ba3de1705 /drivers/staging
parent9be5755c4ae7ac2b5696493fcc706c7d4b81f525 (diff)
staging: pi433: pi433_if.c codestyle fix
This patch fixes the following checkpatch.pl error: ERROR: spaces required around that '>=' (ctx:VxV) #930: FILE: pi433_if.c:930: + for (i--; i>=0; i--) ERROR: spaces required around that '=' (ctx:VxV) #970: FILE: pi433_if.c:970: + for (i=0; i<NUM_DIO; i++) Signed-off-by: Oliver Graute <oliver.graute@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/pi433/pi433_if.c5
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]) )