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>
This commit is contained in:
parent
8f24f505fc
commit
18f0e249da
|
@ -302,7 +302,7 @@ static int mt7621_spi_setup(struct spi_device *spi)
|
||||||
|
|
||||||
if ((spi->max_speed_hz == 0) ||
|
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);
|
spi->max_speed_hz = rs->sys_freq / 2;
|
||||||
|
|
||||||
if (spi->max_speed_hz < (rs->sys_freq / 4097)) {
|
if (spi->max_speed_hz < (rs->sys_freq / 4097)) {
|
||||||
dev_err(&spi->dev, "setup: requested speed is too low %d Hz\n",
|
dev_err(&spi->dev, "setup: requested speed is too low %d Hz\n",
|
||||||
|
|
Loading…
Reference in New Issue