staging: KPC2000: kpc2000_spi.c: Fix style issues (Unnecessary parenthesis)
authorChandra Annamaneni <chandra627@gmail.com>
Tue, 29 Oct 2019 09:16:38 +0000 (02:16 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Oct 2019 09:38:50 +0000 (10:38 +0100)
Resolved: CHECK: Unnecessary parentheses around table[i]

Signed-off-by: Chandra Annamaneni <chandra627@gmail.com>
Link: https://lore.kernel.org/r/20191029091638.16101-4-chandra627@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/kpc2000/kpc2000_spi.c

index 24de8d63f504d26520d4804038fc9cfe9e16a735..8becf972af9c98dc05fe788272b397f41492988f 100644 (file)
@@ -476,7 +476,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) {