Skip to contentSkip to conversation

KPC2000: kpc2000_spi.c: Fix style issues (Unecessary parenthesis)

PATCH New Chandra Annamaneni 1 participant 1 message Oct 10, 2019 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 KPC2000: kpc2000_spi.c: Fix style issues (Unecessary parenthesis)

Resolved: CHECK: Unnecessary parentheses around table[i]

---
 drivers/staging/kpc2000/kpc2000_spi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/kpc2000/kpc2000_spi.c +1 -1
index 2082d86..e702ada 100644
@@ -478,7 +478,7 @@ kp_spi_probe(struct platform_device *pldev)
 	/* register the slave boards */
 #define NEW_SPI_DEVICE_FROM_BOARD_INFO_TABLE(table) \
 	for (i = 0 ; i < ARRAY_SIZE(table) ; i++) { \
-		spi_new_device(master, &(table[i])); \
+		spi_new_device(master, &table[i]); \
 	}
 
 	switch ((drvdata->card_id & 0xFFFF0000) >> 16) {
Signature · 1 line
2.7.4