Commit c976752e authored by Oliver Graute's avatar Oliver Graute Committed by Greg Kroah-Hartman

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: default avatarOliver Graute <oliver.graute@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9be5755c
...@@ -928,8 +928,7 @@ static int setup_GPIOs(struct pi433_device *device) ...@@ -928,8 +928,7 @@ static int setup_GPIOs(struct pi433_device *device)
{ {
retval = PTR_ERR(device->gpiod[i]); retval = PTR_ERR(device->gpiod[i]);
/* release already allocated gpios */ /* release already allocated gpios */
for (i--; i>=0; i--) for (i--; i >= 0; i--) {
{
free_irq(device->irq_num[i], device); free_irq(device->irq_num[i], device);
gpiod_put(device->gpiod[i]); gpiod_put(device->gpiod[i]);
} }
...@@ -968,7 +967,7 @@ static void free_GPIOs(struct pi433_device *device) ...@@ -968,7 +967,7 @@ static void free_GPIOs(struct pi433_device *device)
{ {
int i; int i;
for (i=0; i<NUM_DIO; i++) for (i = 0; i < NUM_DIO; i++)
{ {
/* check if gpiod is valid */ /* check if gpiod is valid */
if ( IS_ERR(device->gpiod[i]) ) if ( IS_ERR(device->gpiod[i]) )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment