Skip to contentSkip to conversation

staging: pi433: fixed coding style issues

PATCH New Xiangyang Zhang 1 participant 1 message Aug 18, 2017 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: pi433: fixed coding style issues

space required before the open parenthesis, open brace should be on previous line.

---
 drivers/staging/pi433/pi433_if.c | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)
drivers/staging/pi433/pi433_if.c +7 -8
index 6b9b7df70f8e..87053e778451 100644
@@ -1125,14 +1125,13 @@ static int pi433_probe(struct spi_device *spi)
 	if (retval < 0)
 		return retval;
 
-	switch(retval)
-	{
-		case 0x24:
-			dev_dbg(&spi->dev, "found pi433 (ver. 0x%x)", retval);
-			break;
-		default:
-			dev_dbg(&spi->dev, "unknown chip version: 0x%x", retval);
-			return -ENODEV;
+	switch (retval) {
+	case 0x24:
+		dev_dbg(&spi->dev, "found pi433 (ver. 0x%x)", retval);
+		break;
+	default:
+		dev_dbg(&spi->dev, "unknown chip version: 0x%x", retval);
+		return -ENODEV;
 	}
 
 	/* Allocate driver data */
Signature · 1 line
2.14.1