staging: octeon: cleanup unnecessary parentheses in ethernet-spmi.c
authorShreesh Adiga <16567adigashreesh@gmail.com>
Fri, 19 Feb 2021 17:07:37 +0000 (22:37 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Mar 2021 08:25:26 +0000 (09:25 +0100)
checkpatch.pl reported issue of unnecessary parentheses for the
expression. It has been removed to fix the report.

Signed-off-by: Shreesh Adiga <16567adigashreesh@gmail.com>
Link: https://lore.kernel.org/r/20210219170737.1138083-1-16567adigashreesh@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/octeon/ethernet-spi.c

index c582403..699c98c 100644 (file)
@@ -202,7 +202,7 @@ int cvm_oct_spi_init(struct net_device *dev)
        }
        number_spi_ports++;
 
-       if ((priv->port == 0) || (priv->port == 16)) {
+       if (priv->port == 0 || priv->port == 16) {
                cvm_oct_spi_enable_error_reporting(INTERFACE(priv->port));
                priv->poll = cvm_oct_spi_poll;
        }