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:
committed by
Greg Kroah-Hartman
parent
8f24f505fc
commit
18f0e249da
@ -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",
|
||||
|
Reference in New Issue
Block a user