staging: mt7621-spi: Remove parentheses
authorNishka Dasgupta <nishka.dasgupta@yahoo.com>
Tue, 2 Apr 2019 05:11:56 +0000 (10:41 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Apr 2019 07:28:08 +0000 (09:28 +0200)
Remove unnecessary parentheses around right hand side of expression.
Issue found with Coccinelle.

Signed-off-by: Nishka Dasgupta <nishka.dasgupta@yahoo.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-spi/spi-mt7621.c

index d260b42..0e0e672 100644 (file)
@@ -302,7 +302,7 @@ static int mt7621_spi_setup(struct spi_device *spi)
 
        if ((spi->max_speed_hz == 0) ||
                (spi->max_speed_hz > (rs->sys_freq / 2)))
-               spi->max_speed_hz = (rs->sys_freq / 2);
+               spi->max_speed_hz = rs->sys_freq / 2;
 
        if (spi->max_speed_hz < (rs->sys_freq / 4097)) {
                dev_err(&spi->dev, "setup: requested speed is too low %d Hz\n",