diff options
author | Nishka Dasgupta <nishka.dasgupta@yahoo.com> | 2019-04-02 10:41:56 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-04-02 09:28:08 +0200 |
commit | 18f0e249da67baf333cee97c412b0530c357f67b (patch) | |
tree | 14e14b84f9fb8597e054a6a58c711eef7c7a2023 /drivers | |
parent | 8f24f505fc2a151ff8bf67fcf11e4c7c6bfcbf49 (diff) |
staging: mt7621-spi: Remove parentheses
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/mt7621-spi/spi-mt7621.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/mt7621-spi/spi-mt7621.c b/drivers/staging/mt7621-spi/spi-mt7621.c index d260b42ff328..0e0e67280b00 100644 --- a/drivers/staging/mt7621-spi/spi-mt7621.c +++ b/drivers/staging/mt7621-spi/spi-mt7621.c @@ -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", |