Skip to contentSkip to conversation

staging: mt7621-spi: Remove parentheses

PATCH New Nishka Dasgupta 1 participant 1 message Apr 2, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: mt7621-spi: Remove parentheses

Remove unnecessary parentheses around right hand side of expression. Issue found with Coccinelle.

---
 drivers/staging/mt7621-spi/spi-mt7621.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/mt7621-spi/spi-mt7621.c +1 -1
index d260b42ff328..0e0e67280b00 100644
@@ -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",
Signature · 1 line
2.19.1