[PATCH] staging: pi433: pi433_if.c added a blank in for loop

Oliver Graute oliver.graute at gmail.com
Thu Nov 30 18:01:00 UTC 2017


This patch fixes the following checkpatch.pl error:

ERROR: spaces required around that '=' (ctx:VxV)
#912: FILE: pi433_if.c:912:
+       for (i=0; i<NUM_DIO; i++)

Signed-off-by: Oliver Graute <oliver.graute at gmail.com>
---
 drivers/staging/pi433/pi433_if.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c
index c134cc3..74d4abe 100644
--- a/drivers/staging/pi433/pi433_if.c
+++ b/drivers/staging/pi433/pi433_if.c
@@ -890,7 +890,7 @@ static int setup_GPIOs(struct pi433_device *device)
 		DIO1_irq_handler
 	};
 
-	for (i=0; i<NUM_DIO; i++)
+	for (i = 0; i < NUM_DIO; i++)
 	{
 		/* "construct" name and get the gpio descriptor */
 		snprintf(name, sizeof(name), "DIO%d", i);
-- 
1.9.1



More information about the devel mailing list